[SR-12459] Cannot call equality operator declared as a static member of a protocol #54899
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
Additional Detail from JIRA
md5: 886bc3d5b61b666595f45872e20f5f63
Issue Description:
Take a look at the following code:
I would expect
a == b
to call the==
operator declared in the extension ofFoo
. However, I get an error „Binary operator '==' cannot be applied to two 'Foo' operands“.Using Swift 5.2 shipped with Xcode 11.4 (11E146, swiftlang-1103.0.32.1)
The text was updated successfully, but these errors were encountered: