Swift compiler crashes on specific method signature
| Originator: | nikolai.ruhe | ||
| Number: | rdar://28403350 | Date Originated: | 09-Sept-2016 |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode 8.0 (8A218a) |
| Classification: | Crash | Reproducible: | Always |
Summary:
Declaring a method that...
1. returns an `UInt64`
2. throws
3. is dispatched dynamically
... makes the compiler crash.
Example:
import Foundation
class Foo: NSObject {
func f() throws -> UInt64 {
return 0
}
}
Steps to Reproduce:
Compile above example in Xcode 8.0 (8A218a)
Expected Results:
No Crash
Actual Results:
Crash
Version:
Xcode 8.0 (8A218a)
macOS 10.11.6 (15G1004)
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
Closed as duplicate of 28035614