Wrong go to definition in match
expression when matched value and the scrutinee are the same
#5221
Labels
match
expression when matched value and the scrutinee are the same
#5221
In the below example, when going to definition for both
EXAMPLE_CONST
s in thematch
expression we should land on the definition of the constant. This is the case for the firstEXAMPLE_CONST
. However, when calling Go to Definition for the second instance, for the scrutinee, we land on theEXAMPLE_CONST
above, the matched value in thematch
expression.I've extended the
go_to_definition_for_matches()
test to demonstrate the issue. The extended test and fixture can be found in the branch ironcev/go-to-definition-issue-in-match-exp:The text was updated successfully, but these errors were encountered: