-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GoToDefinition on var
in var pattern doesn't navigate to type
#51615
Labels
Milestone
Comments
dotnet-issue-labeler
bot
added
the
untriaged
Issues and PRs which have not yet been triaged by a lead
label
Mar 3, 2021
One difference to note is that |
I'm not able to debug currently. But I see the following method is used by SymbolFinder: Lines 513 to 534 in 1209b91
|
jinujoseph
added
4 - In Review
A fix for the issue is submitted for review.
Bug
and removed
untriaged
Issues and PRs which have not yet been triaged by a lead
labels
Mar 4, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is possible to use GoToDefinition on
var
in local declarations, out variables and deconstructions.But it doesn't work on a var pattern:
Looking at compiler test
SwitchExpression_10
, I think thatGetDeclaredSymbol
andGetTypeInfo
work on var patterns, so I suspect this is an IDE problem.The text was updated successfully, but these errors were encountered: