[Analysis API] add test for resolution into declarations with the kotlin. package
^KT-63223
This commit is contained in:
committed by
Space Team
parent
063d73fa73
commit
d2b9b487c7
+13
@@ -0,0 +1,13 @@
|
||||
// ALLOW_KOTLIN_PACKAGE
|
||||
// FILE: a.kt
|
||||
package kotlin.pckg
|
||||
|
||||
fun foo() {
|
||||
b<caret>ar()
|
||||
}
|
||||
|
||||
// FILE: b.kt
|
||||
package kotlin.pckg
|
||||
|
||||
fun bar() {
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in kotlin.pckg) fun bar()
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
// FE1.0 can resolve to `kotlin` package when it's not allowed
|
||||
// IGNORE_FE10
|
||||
// UNRESOLVED_REFERENCE
|
||||
// COMPILATION_ERRORS
|
||||
// FILE: a.kt
|
||||
package kotlin.pckg
|
||||
|
||||
fun foo() {
|
||||
b<caret>ar()
|
||||
}
|
||||
|
||||
// FILE: b.kt
|
||||
package kotlin.pckg
|
||||
|
||||
fun bar() {
|
||||
}
|
||||
Reference in New Issue
Block a user