Files
kotlin/compiler/testData/diagnostics/tests/functionLiterals/functionLIteralInBlockInIf.kt
2013-12-19 13:01:05 +04:00

10 lines
158 B
Kotlin

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