lionheart / openradar-mirror

A mirror of radars pulled from http://openradar.me/.
246 stars 17 forks source link

25679641: Xcode Seg Faults when trying to make a strut conform to BooleanLiteralConvertible in Swift #9570

Open openradar-mirror opened 8 years ago

openradar-mirror commented 8 years ago

Description

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
}

}

Product Version: 7.3 (7D175) Created: 2016-04-12T14:21:26.132010 Originated: 2016-04-12T00:00:00 Open Radar Link: http://www.openradar.me/25679641

openradar-mirror commented 8 years ago

Modified: 2016-04-12T14:21:26.132200