Files
kotlin-fork/analysis/analysis-api/testData/referenceResolve/importAlias.kt
T
Jinseong Jeon a68fd25982 AA: relax the assertion about referenced ClassId and qualified access
If an import alias is involved, they could be not identical.
Since an import alias ends with a simple identifer, we can simply drop
the first segment of qualified access and try the assertion again.
2022-03-02 20:30:31 +01:00

21 lines
256 B
Kotlin
Vendored

// FILE: R.kt
package test.pkg
class R {
class string {
companion object {
val hello : Int = 42
}
}
}
// FILE: main.kt
package test.pkg
import test.pkg.R as coreR
fun box() {
val s = core<caret>R.string.hello
}