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