impl
item after struct decl, confuses LSP "go to definition"
#7025
Labels
impl
item after struct decl, confuses LSP "go to definition"
#7025
The test
go_to_definition_for_structs
tests the "go to definition" handler in this file:The request points to "U" of "g: U", and expects the response point to "U" of "struct MyStruct<T, U>". Which works currently; but if an
impl
item appears after the struct declaration such asNow, the same "go to definition" request points to the second "U" of the new line "impl<T, U> A for MyStruct<T, U> {}", which is wrong.
The text was updated successfully, but these errors were encountered: