[SR-2208] Binary operator '/' cannot be applied to two 'Int' operands #44815
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
regression
swift 3.0
type checker
Area → compiler: Semantic analysis
Environment
DEVELOPMENT-SNAPSHOT-2016-07-28-a
Additional Detail from JIRA
md5: 125d123b1c15a16f235b09bde4d474ad
is duplicated by:
relates to:
Issue Description:
When passing operation as parameter to function that expects single value, type checked ❓ is confused about passing value type and report error message: Expected an argument list of type '(UInt, UInt)' while for real, expected argument is single value of UInt (in example below)
with intermediate variable, error message is more accurate:
and finally, it's working:
The text was updated successfully, but these errors were encountered: