[SR-3209] Ambiguous use of binary operators not reported as error #45797
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
Apple Swift version 3.0.1 (swiftlang-800.0.58.6 clang-800.0.42.1)
Additional Detail from JIRA
md5: 4f87677813e0a801d8190d5f53f9af3c
Issue Description:
The compiler should report an error for the following code:
The overload resolution picks the functions f2 and f4 even though f1 and f3 would also be a valid pick. Additionally, both solutions should have the same priority / score and therefore the compiler should report this use of the operators
***
and+++
as ambiguous.The text was updated successfully, but these errors were encountered: