Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/asImports.kt
T

22 lines
267 B
Kotlin
Vendored

// FILE: A.kt
package foo
class A {
fun foo() {}
}
// FILE: main.kt
import foo.A as B
fun test_1() {
val a = <!UNRESOLVED_REFERENCE!>A<!>()
val b = B() // should be OK
val c: B = <!UNRESOLVED_REFERENCE!>A<!>()
}
fun test_2(b: B) {
b.foo()
}