swift-emacs / swift-mode

Emacs support for Apple's Swift programming language.
GNU General Public License v3.0
363 stars 47 forks source link

Hang interacting with which-func mode #157

Closed dabrahams closed 5 years ago

dabrahams commented 5 years ago

Open this file, turn on which-func mode, C-n to the last line, and hit return. It will hang

protocol P { func f() }
extension P { func g() { f() } }
struct X<T> : P {
    func f() { print("unconstrained") }
}

struct X<T> : where T : BinaryInteger {
    func f() { print("constrained") }
}

The backtrace I get is:

Backtrace.txt

taku0 commented 5 years ago

Sorry, I missed this issue for long. Fixed by 04c8a621e9844ef3f7d53c41b046f71aadb1a9d2. Thank you for reporting the issue.