[SR-2368] Poor error message when doing math on Ints where a Double is expected. #44975
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 8 beta 5, Swift 3
Additional Detail from JIRA
md5: 0d699c61189a4c568c3a4a473ac74ade
duplicates:
Issue Description:
For example:
`let test: Double = Int(60) * 60`
Produces the error: "Binary operator '*' cannot be applied to two 'Int' operands"
This was especially confusing when using a method expecting a Double (such that the type wasn't immediately visible.)
The text was updated successfully, but these errors were encountered: