Files
kotlin/compiler/testData/diagnostics/tests/functionLiterals/functionLIteralInBlockInIf.kt

10 lines
156 B
Kotlin
Vendored

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