Files
kotlin/compiler/testData/diagnostics/tests/functionLiterals/functionLIteralInBlockInIf.kt
2015-04-29 16:33:24 +02:00

10 lines
156 B
Kotlin
Vendored

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