Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/asImports.fir.txt
T
Jinseong Jeon 9b39a8abc2 FIR: avoid wrapping an erroneous type as FirResolvedTypeRef
Instead, use FirErrorTypeRef, a subtype of FirResolvedTypeRef
2021-04-29 22:31:38 +03:00

20 lines
546 B
Plaintext
Vendored

FILE: A.kt
public final class A : R|kotlin/Any| {
public constructor(): R|foo/A| {
super<R|kotlin/Any|>()
}
public final fun foo(): R|kotlin/Unit| {
}
}
FILE: main.kt
public final fun test_1(): R|kotlin/Unit| {
lval a: <ERROR TYPE REF: Unresolved name: A> = <Unresolved name: A>#()
lval b: R|foo/A| = R|foo/A.A|()
lval c: R|foo/A| = <Unresolved name: A>#()
}
public final fun test_2(b: R|foo/A|): R|kotlin/Unit| {
R|<local>/b|.R|foo/A.foo|()
}