Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolveWithStdlib/castForFunctionsWithDifferentArities.fir.txt
Nikita Nazarov 1df318ff28 [FIR] Remove the redundant isFunctionType check
^KT-63865 fixed
2023-12-01 21:04:41 +00:00

13 lines
522 B
Plaintext
Vendored

FILE: castForFunctionsWithDifferentArities.kt
public final fun test(b: R|kotlin/Boolean|, block1: R|kotlin/Any.() -> kotlin/Unit|, block2: R|(kotlin/Any.(kotlin/Any?) -> kotlin/Unit)?|): R|kotlin/Unit| {
when () {
R|<local>/b| -> {
R|kotlin/requireNotNull|<R|kotlin/Any.() -> kotlin/Unit|>(R|<local>/block1|)
}
else -> {
R|kotlin/requireNotNull|<R|kotlin/Any.(kotlin/Any?) -> kotlin/Unit|>(R|<local>/block2|)
}
}
}