We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15f7ec0 commit 9663752Copy full SHA for 9663752
language-server/test/dotty/tools/languageserver/DefinitionTest.scala
@@ -43,4 +43,16 @@ class DefinitionTest {
43
).definition(m3 to m4, List(m1 to m2))
44
}
45
46
+ @Test def goToDefinitionImport: Unit = {
47
+ withSources(
48
+ code"""package a
49
+ class ${m1}Foo${m2}""",
50
+ code"""package b
51
+ import a.${m3}Foo${m4}
52
+ class C extends ${m5}Foo${m6}"""
53
+ ).definition(m1 to m2, List(m1 to m2))
54
+ .definition(m3 to m4, List(m1 to m2))
55
+ .definition(m5 to m6, List(m1 to m2))
56
+ }
57
+
58
0 commit comments