From 8c4919c9fdfb2333fd798cd7d531f4264c939322 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 11 Jul 2020 12:45:30 +0200 Subject: Fix goto definition for type alias type parameters closes https://github.com/rust-analyzer/rust-analyzer/issues/5042 --- crates/ra_ide/src/goto_definition.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'crates/ra_ide') diff --git a/crates/ra_ide/src/goto_definition.rs b/crates/ra_ide/src/goto_definition.rs index 8fc33d031..f575d738f 100644 --- a/crates/ra_ide/src/goto_definition.rs +++ b/crates/ra_ide/src/goto_definition.rs @@ -856,4 +856,14 @@ impl Foo { "#, ); } + + #[test] + fn goto_def_for_type_alias_generic_parameter() { + check( + r#" +type Alias = T<|>; + //^ +"#, + ) + } } -- cgit v1.2.3