[SR-7476] Incorrect “ambiguous operator” error #50019
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
Additional Detail from JIRA
md5: 63373d06282f6e25f06e5a5947d9a447
duplicates:
Issue Description:
When a type implements an operator, and conditionally conforms to a protocol which requires that operator, the compiler produces an “ambiguous use of operator” error when it is used:
If the requirement is a function rather than an operator, the code will compile.
This bug was discussed on the Swift forums here.
The text was updated successfully, but these errors were encountered: