[SR-168] Compiler incorrectly resolves type inference error as "ambiguous reference to member ..." #42790
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
type checker
Area → compiler: Semantic analysis
Environment
Xcode 7.2 (7C68)
Additional Detail from JIRA
md5: eb1b8c6f0b081ea09744c1503d1588d0
Issue Description:
In case function that takes closure require type inference resolution and it is called in a context where type can not be inferred compiler reports a wrong error. For example:
This code reports following error:
commenting out print cause a proper error:
The text was updated successfully, but these errors were encountered: