diff options
author | Aleksey Kladov <[email protected]> | 2020-07-11 11:45:30 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-07-11 11:45:30 +0100 |
commit | 8c4919c9fdfb2333fd798cd7d531f4264c939322 (patch) | |
tree | 3bce4b34534727b833d6685251aa83373acf5491 /crates/ra_ide/src | |
parent | 3fc4916b53894c63320e31855e3c62b974dfcc95 (diff) |
Fix goto definition for type alias type parameters
closes https://github.com/rust-analyzer/rust-analyzer/issues/5042
Diffstat (limited to 'crates/ra_ide/src')
-rw-r--r-- | crates/ra_ide/src/goto_definition.rs | 10 |
1 files changed, 10 insertions, 0 deletions
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 { | |||
856 | "#, | 856 | "#, |
857 | ); | 857 | ); |
858 | } | 858 | } |
859 | |||
860 | #[test] | ||
861 | fn goto_def_for_type_alias_generic_parameter() { | ||
862 | check( | ||
863 | r#" | ||
864 | type Alias<T> = T<|>; | ||
865 | //^ | ||
866 | "#, | ||
867 | ) | ||
868 | } | ||
859 | } | 869 | } |