Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolveWithStdlib/castForFunctionsWithDifferentArities.kt
T
Nikita Nazarov 1df318ff28 [FIR] Remove the redundant isFunctionType check
^KT-63865 fixed
2023-12-01 21:04:41 +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)
}
}