[SR-10295] Unexpected ambiguity error when trying to use variable with the same name as an instance member #52695
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
good first issue
Good for newcomers
Additional Detail from JIRA
md5: 350070c7174a52610d975e704164ed3e
relates to:
Issue Description:
Consider following example:
It produces following error:
Which doesn't really make much sense, instead it should produce an error which suggests to add `self.` before method or variable use e.g. `let foo = self.foo(x: 42)`
The text was updated successfully, but these errors were encountered: