You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expectation is that this error should only occur if the name collision is because the name can be assigned to. Otherwise, it should assume that basename belongs to the data structure.
The text was updated successfully, but these errors were encountered:
@smarter do we want this to work without thisbasename = bname? You mentioned on gitter that dotty had got somehow stricter in such cases compared to scala2.
Yes, we're intentional stricter since #8622, but it's possible we could still get this example to work since only one of the two basename in scope are setters.
Minimized example
Output
[error] |Reference to basename is ambiguous
Expectation
Expectation is that this error should only occur if the name collision is because the name can be assigned to. Otherwise, it should assume that
basename
belongs to the data structure.The text was updated successfully, but these errors were encountered: