Xcode Seg Faults when trying to make a strut conform to BooleanLiteralConvertible in Swift

Originator:kuang812
Number:rdar://25679641 Date Originated:4/12/2016
Status:Open Resolved:
Product:Xcode Product Version:7.3 (7D175)
Classification:Crash Reproducible:Always
 
In Swift, when trying to make a struct conform to BooleanLiteralConvertible, Xcode editor crashes and errors out with Segmentation Fault 11.

If I remove the BooleanLiteralConvertible, it works again. Note that conforming to BooleanType works, just not BooleanLiteralConvertible.

Sample implementation:

struct PostOption: BooleanType, BooleanLiteralConvertible {
    var internalValue: Bool
    
    var boolValue: Bool {
        return internalValue
    }
    
    init(booleanLiteral value: Self.BooleanLiteralType) {
        self.internvalValue = value
    }
}

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!