Files
kotlin-fork/compiler/testData/diagnostics/tests/functionLiterals/functionLIteralInBlockInIf.kt
T

11 lines
173 B
Kotlin
Vendored

// FIR_IDENTICAL
// !CHECK_TYPE
fun test() {
val a = if (true) {
val x = 1
({ x })
} else {
{ 2 }
}
a checkType { _<() -> Int>() }
}