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
But is it really an issue in practice? nameOf works on types as well as identifiers. And obj as variable is still accessible, and the returned string should be "obj" in either case; alternatively one might consider the ambiguity an error, after all, there's no way to know whether the user intended one over the other.
It can be. This is a close to minimal repro which doesn't look too bad on its own indeed. But it clearly shows a different behavior which, together with a more subtle names clash, can make features like Rename refactoring work very wrong.
Activity
cartermp commentedon Mar 5, 2020
@dsyme @TIHan we'll want to look at this one in the next sprint I think, especially if we can focus on finishing up some design concerns around
nameofabelbraaksma commentedon Mar 5, 2020
But is it really an issue in practice?
nameOfworks on types as well as identifiers. Andobjas variable is still accessible, and the returned string should be "obj" in either case; alternatively one might consider the ambiguity an error, after all, there's no way to know whether the user intended one over the other.auduchinok commentedon Mar 5, 2020
It can be. This is a close to minimal repro which doesn't look too bad on its own indeed. But it clearly shows a different behavior which, together with a more subtle names clash, can make features like Rename refactoring work very wrong.
abelbraaksma commentedon Mar 5, 2020
Didn't think of that, good point.
dsyme commentedon Jul 23, 2020
Thanks for this bug report
dsyme commentedon Jul 27, 2020
Thanks again for this report, I made the appropriate fix and update to the RFC, see fsharp/fslang-design#488
dsyme commentedon Jul 27, 2020
I'll close this report as it is now part of the RFC update at #8754