[SR-8756] NSDecimalNumber(string:) regression in Xcode 10 GM (Returns NaN). #51264
Labels
access control
Feature → modifiers: Access control and access levels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
regression
swift 4.2
Environment
Xcode 10 GM
Xcode 9.4.1
Additional Detail from JIRA
md5: 215ce993c53eac04883adc50b9b63c05
Issue Description:
When running our unit tests, spotted a weird regression in some conversion to `NSDecimalNumber` that's acting very odd, specifically in Xcode 10.
I reduced the issue to as few lines as possible.
Given the following, seemingly unrelated extension:
The following code behaves irregularly (see Example 2). Seems related to inference but not entirely sure how, since the "String" return type is properly explicit; having this wasn't an issue in Xcode 9.
Appreciate your help!
Shai.
The text was updated successfully, but these errors were encountered: