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 c17925f commit 1bbbc1aCopy full SHA for 1bbbc1a
language-server/test/dotty/tools/languageserver/DefinitionTest.scala
@@ -19,6 +19,20 @@ class DefinitionTest {
19
.definition(m5 to m6, List(m1 to m2))
20
}
21
22
+ @Test def classDefinitionDifferentWorkspace: Unit = {
23
+ val w0 = Workspace.withSources(
24
+ code"""class ${m1}Foo${m2}"""
25
+ )
26
+
27
+ val w1 = Workspace.dependingOn(w0).withSources(
28
+ code"""class Bar { new ${m3}Foo${m4} }"""
29
30
31
+ withWorkspaces(w0, w1)
32
+ .definition(m1 to m2, List(m1 to m2))
33
+ .definition(m3 to m4, List(m1 to m2))
34
+ }
35
36
@Test def valDefinition0: Unit = {
37
withSources(
38
code"class Foo { val ${m1}x$m2 = 0; ${m3}x$m4 }",
0 commit comments