Operations on NSDecimalNumber.notANumber() in Swift lead to runtime errors

Originator:dloewenherz
Number:rdar://28856558 Date Originated:19-Oct-2016 05:12 PM
Status:Open Resolved:
Product:iOS SDK Product Version:10.0
Classification:Serious Bug Reproducible:Always
 
Summary:
See title.

Steps to Reproduce:
1. Download attached playground.
2. Wait until code executes.

Expected Results:
The Swift compiler forces you to wrap the operation in an exception handler (do/catch).

Actual Results:
The code executes and a runtime error occurs.

Version:
iOS 10.0.2

Notes:


Configuration:
iPhone SE 64GB T-Mobile

Attachments:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!