a68fd25982
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.
21 lines
256 B
Kotlin
Vendored
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
|
|
}
|