diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-07-11 11:46:25 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-07-11 11:46:25 +0100 |
commit | ba48c6548c4e9a1fa6a4c12372c64d41781c1559 (patch) | |
tree | d92a95c8849d3a65627c80c9b2af7a8cdb0d66a4 /crates/ra_ide | |
parent | 45be08c708ba03dbc4bb935e0288c3f72c2db119 (diff) | |
parent | 8c4919c9fdfb2333fd798cd7d531f4264c939322 (diff) |
Merge #5311
5311: Fix goto definition for type alias type parameters r=matklad a=matklad
closes https://github.com/rust-analyzer/rust-analyzer/issues/5042
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_ide')
-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 | } |