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 1d1a28d commit c79a2ceCopy full SHA for c79a2ce
language-server/test/dotty/tools/languageserver/DefinitionTest.scala
@@ -125,4 +125,16 @@ class DefinitionTest {
125
.definition(m9 to m10, List(m3 to m4))
126
}
127
128
+ @Test def goToDefinitionImport: Unit = {
129
+ withSources(
130
+ code"""package a
131
+ class ${m1}Foo${m2}""",
132
+ code"""package b
133
+ import a.${m3}Foo${m4}
134
+ class C extends ${m5}Foo${m6}"""
135
+ ).definition(m1 to m2, List(m1 to m2))
136
+ .definition(m3 to m4, List(m1 to m2))
137
+ .definition(m5 to m6, List(m1 to m2))
138
+ }
139
+
140
0 commit comments