[Analysis API] Add tests for dangling files

This commit is contained in:
Yan Zhulanow
2023-11-13 16:33:08 +09:00
committed by Space Team
parent 2899822102
commit 9c91158be6
25 changed files with 2406 additions and 9 deletions
@@ -0,0 +1,9 @@
// FILE: lib.kt
class Foo
// FILE: main.kt
fun test() {
Fo<caret>o()
}
@@ -0,0 +1,2 @@
Resolved to:
0: (in Foo) constructor() [lib.kt]
@@ -0,0 +1,5 @@
class Foo
fun test() {
Fo<caret>o()
}
@@ -0,0 +1,2 @@
Resolved to:
0: (in Foo) constructor() [fake.kt]
@@ -0,0 +1,9 @@
// FILE: lib.kt
fun foo() {}
// FILE: main.kt
fun test() {
fo<caret>o()
}
@@ -0,0 +1,2 @@
Resolved to:
0: (in ROOT) fun foo() [lib.kt]
@@ -0,0 +1,5 @@
fun foo() {}
fun test() {
fo<caret>o()
}
@@ -0,0 +1,2 @@
Resolved to:
0: (in ROOT) fun foo() [fake.kt]