Compiler crash when calling static func on protocol
| Originator: | matteosartori | ||
| Number: | rdar://21348773 | Date Originated: | 12-Jun-2015 12:49 AM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode-beta (7A120f) |
| Classification: | Crash/Hang/Data Loss | Reproducible: | Always |
Summary:
The compiler crashes both in a Playground and in a regular project with the following code:
protocol Foo {
static func bar()
}
struct Foz : Foo {
static func bar() {
print("Montoya")
}
}
Foo.bar()
Steps to Reproduce:
Type the above into a playground. The crash happens in both Xcode 6.3.2 (6D2105) and 7.0 beta (7A120f).
Expected Results:
The type method getting called or at least a compile time error describing why I cannot call the type method of a protocol.
Actual Results:
Playground crashes / Xcode project fails to compile with an inscrutable error.
Regression:
Describe circumstances where the problem occurs or does not occur, such as software versions and/or hardware configurations.
Notes:
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!