Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/asImports.kt
T
2020-12-16 19:52:30 +03:00

22 lines
339 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{LT}!><!UNRESOLVED_REFERENCE{PSI}!>A<!>()<!>
val b = B() // should be OK
val c: B = <!UNRESOLVED_REFERENCE{LT}!><!UNRESOLVED_REFERENCE{PSI}!>A<!>()<!>
}
fun test_2(b: B) {
b.foo()
}