You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
swift-ci opened this issue
Jun 16, 2017
· 1 comment
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfcrashBug: A crash, i.e., an abnormal termination of software
SR-75 Referencing a protocol function crashes the compiler
Issue Description:
```
protocol Test {
func f()
}
let x = Test.f
```
This crashes the compiler in all versions of swift from 4 back to at least 3.0. I would expect this to capture a function type `(Test) -> (Void) -> Void`, which I could then call with an instance of a concrete type that conforms to `Test`.
The text was updated successfully, but these errors were encountered:
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfcrashBug: A crash, i.e., an abnormal termination of software
Environment
Xcode 8, 9-beta. Swift 3, 3.1, 4.0
Additional Detail from JIRA
md5: 2fc81e65316aa508685c9fd598ee2c2e
duplicates:
Issue Description:
```
protocol Test {
func f()
}
let x = Test.f
```
This crashes the compiler in all versions of swift from 4 back to at least 3.0. I would expect this to capture a function type `(Test) -> (Void) -> Void`, which I could then call with an instance of a concrete type that conforms to `Test`.
The text was updated successfully, but these errors were encountered: