Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolveWithStdlib/castForFunctionsWithDifferentArities.kt
T
Nikita Nazarov 1f97c268e1 [FIR] Remove the redundant isFunctionType check
^KT-63865 fixed
2023-11-30 14:17:01 +00:00

10 lines
194 B
Kotlin
Vendored

// ISSUE: KT-63865
fun test(b: Boolean, block1: Any.() -> Unit, block2: (Any.(Any?) -> Unit)?) {
if (b) {
requireNotNull(block1)
} else {
requireNotNull(block2)
}
}