Xcode 6.3 (6D554n): [Swift] Accessing a static property of a protocol type crashes the compiler

Originator:janoschhildebrand
Number:rdar://20290576 Date Originated:25-Mar-2015
Status:Closed Resolved:Duplicate of 21176676
Product:Developer Tools Product Version:Version 6.3 (6D554n)
Classification:Serious Bug Reproducible:Always
 
Summary:
The following crashes the Swift compiler:

protocol P {
    static var property: Int { get }
}
P.property

The same crash occurs for a static function defined in the protocol.
An example project & crash report is also attached.

Steps to Reproduce:
Open the attached Xcode project & build

Expected Results:
The protocol type should probably not expose static properties defined in the protocol on itself as it does not conform to the protocol it defines.

Actual Results:
The static property is accessible on the protocol type and results in a crash of the Swift compiler when compiling the code.

Version:
Version 6.3 (6D554n)
Apple Swift version 1.2 (swiftlang-602.0.47.4 clang-602.0.48)
10.10.2 (14C1514)

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!