apple / swift-foundation

The Foundation project
Apache License 2.0
2.28k stars 135 forks source link

Decimal.init(string:) should return nil for invalid Decimal strings #693

Closed iCharlesHu closed 2 weeks ago

iCharlesHu commented 2 weeks ago

For binary compatibility, Decimal.init(string:) should return nil instead of 0 for totally invalid Decimal strings.

resolves: rdar://130209835

iCharlesHu commented 2 weeks ago

@swift-ci please test