Open
Description
Previous ID | SR-8798 |
Radar | None |
Original Reporter | @hartbit |
Type | Bug |
Additional Detail from JIRA
Votes | 0 |
Component/s | Standard Library |
Labels | Bug |
Assignee | None |
Priority | Medium |
md5: e4ed61953fff624b3e51c4a4dfb662dd
Issue Description:
The following piece of code crashes at runtime:
extension BinaryFloatingPoint where Self.RawSignificand: FixedWidthInteger {
static func random() -> Self {
return random(in: -greatestFiniteMagnitude..<greatestFiniteMagnitude)
}
}
This should be fixed.