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 d51e463 commit fdedd8aCopy full SHA for fdedd8a
language-server/test/dotty/tools/languageserver/DefinitionTest.scala
@@ -37,6 +37,20 @@ class DefinitionTest {
37
.definition(m13 to m14, List(m3 to m4))
38
}
39
40
+ @Test def classDefinitionDifferentWorkspace: Unit = {
41
+ val w0 = Workspace.withSources(
42
+ code"""class ${m1}Foo${m2}"""
43
+ )
44
+
45
+ val w1 = Workspace.dependingOn(w0).withSources(
46
+ code"""class Bar { new ${m3}Foo${m4} }"""
47
48
49
+ withWorkspaces(w0, w1)
50
+ .definition(m1 to m2, List(m1 to m2))
51
+ .definition(m3 to m4, List(m1 to m2))
52
+ }
53
54
@Test def valDefinition0: Unit = {
55
withSources(
56
code"class Foo { val ${m1}x$m2 = 0; ${m3}x$m4 }",
0 commit comments