[Analysis API] add test for resolution into declarations with the kotlin. package

^KT-63223
This commit is contained in:
Ilya Kirillov
2023-11-06 21:50:25 +01:00
committed by Space Team
parent 063d73fa73
commit d2b9b487c7
9 changed files with 96 additions and 1 deletions
@@ -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() {
}
@@ -0,0 +1,2 @@
Resolved to:
0: (in kotlin.pckg) fun bar()
@@ -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() {
}