Closed danicheg closed 1 year ago
that already exists on the underlying type
the problem is not that it exists on the underlying type, it's that it exists on the upper-bound of the opaque type, which when left unspecified is Any
which does define equals
.
Oh, I thought you meant "underlying type of the opaque type", but if you meant "type on which the extension is defined" then nevermind my comment.
Compiler version
3.1.1-RC1
and earlierProposal
As far as I can see, if we create an extension method with the same signature, that already exists on the underlying type, then:
It'd be more clear if the creation of that methods will be prohibited (or at least warnings would be supplied).
Example 1
Example 2