Open openradar-mirror opened 8 years ago
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
Modified: 2016-04-12T14:21:26.132200
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
}
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