Files
kotlin-fork/compiler/fir/resolve/testData/diagnostics/callableReferences/fromBasicDiagnosticTests/postponedResolveOfManyCallableReference.txt
T
Denis Zharkov 937ea3d8a0 FIR: Support postponed callable references resolution
^KT-32725 In Progress
2019-10-28 17:07:08 +03:00

21 lines
781 B
Plaintext
Vendored

FILE: postponedResolveOfManyCallableReference.kt
public abstract interface A : R|kotlin/Any| {
}
public abstract interface B : R|kotlin/Any| {
}
public final fun foo(i: R|A|): R|kotlin/Unit| {
}
public final fun foo(b: R|B|): R|kotlin/Unit| {
}
public final fun <T> bar1(f: R|kotlin/Function1<T, kotlin/Unit>|): R|T| {
^bar1 R|kotlin/TODO|()
}
public final fun <T> bar2(f: R|kotlin/Function1<T, kotlin/Unit>|, e: R|T|): R|kotlin/Unit| {
}
public final fun test(a: R|A|, b: R|B|): R|kotlin/Unit| {
lval expectedType1: R|A| = R|/bar1|<R|A|>(::R|/foo|)
lval expectedType2: R|B| = R|/bar1|<R|B|>(::R|/foo|)
R|/bar2|<R|A|>(::R|/foo|, R|<local>/a|)
R|/bar2|<R|B|>(::R|/foo|, R|<local>/b|)
}