[SR-10766] Incorrect error message: "Double is not convertible to Decimal" #53156
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
type checker
Area → compiler: Semantic analysis
Environment
Xcode Version 10.2.1 (10E1001)
macOS 10.14.5 (18F132)
Additional Detail from JIRA
md5: 34f813ad0acc719bbde11fc25e43bbb3
Issue Description:
In the following code, the correct error should be that the 1st product in the array is missing a description. The error code given by Xcode is that for the 2nd product, 9.99 is "Double is not convertible to Decimal". Removing the 1st product, fixes the error on the 2nd product.
Data models:
Code:
The text was updated successfully, but these errors were encountered: