Offer additional note for why method with Self reference cannot be used on any SomeType
#76320
Labels
feature
A feature request or implementation
good first issue
Good for newcomers
type checker
Area → compiler: Semantic analysis
Motivation
The following snippet;
is correct in rejecting the line, since we need
Self.SomeID
to be well typed, but we dont know what its type is via theany
.It'd be helpful if we can point out that "why" the method can't be used via a note, in a method with many parameters one can sometimes miss the Self reference.
Proposed solution
Adding a
note
on the offending parameter would be goodAlternatives considered
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: