[Analysis API] fix resolution to declarations inside kotlin*. packages

`kotlin*.` packages should be always allowed.
`kotlin.` packages should be allowed if `AnalysisFlags.allowKotlinPackage` is `true`

^KT-63223 fixed
This commit is contained in:
Ilya Kirillov
2023-11-06 21:32:54 +01:00
committed by Space Team
parent d22218e4e4
commit c54d83dcad
10 changed files with 118 additions and 1 deletions
@@ -0,0 +1,12 @@
// FILE: a.kt
package kotlinx.pckg
fun foo() {
b<caret>ar()
}
// FILE: b.kt
package kotlinx.pckg
fun bar() {
}
@@ -0,0 +1,2 @@
Resolved to:
0: (in kotlinx.pckg) fun bar()