Swift: If define a computed variable with the same name as the type name, compiler segmentation fault.

Originator:kishikawakatsumi
Number:rdar://19755365 Date Originated:7, Feb, 2015
Status:Duplicate of 19040878 (Closed) Resolved:
Product:Developer Tools Product Version:
Classification:Crash Reproducible:Always
 
Summary:
Crash If define a computed variable with the same name as the type name

Steps to Reproduce:
class A {
    var A: A {
        return A()
    }
}

Expected Results:
No crash

Actual Results:
Compiler segmentation fault

Version:
OS X 10.10.1 (14B25)

Xcode 6.1.1 (6A2008a)
Xcode 6.2 (6C107a)
Xcode 6.2 (6C121)

Notes:


Configuration:
MacBookPro10,1, 16GB RAM

Attachments:

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!