We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 077d688 commit 421b6ceCopy full SHA for 421b6ce
language-server/test/dotty/tools/languageserver/DefinitionTest.scala
@@ -36,4 +36,16 @@ class DefinitionTest {
36
.definition(m5 to m6, List(m1 to m2))
37
}
38
39
+ @Test def goToDefinitionImport: Unit = {
40
+ withSources(
41
+ code"""package a
42
+ class ${m1}Foo${m2}""",
43
+ code"""package b
44
+ import a.${m3}Foo${m4}
45
+ class C extends ${m5}Foo${m6}"""
46
+ ).definition(m1 to m2, List(m1 to m2))
47
+ .definition(m3 to m4, List(m1 to m2))
48
+ .definition(m5 to m6, List(m1 to m2))
49
+ }
50
+
51
0 commit comments