Files
kotlin-fork/compiler/testData/diagnostics/tests/functionLiterals/functionLIteralInBlockInIf.kt
T
2013-10-16 20:41:21 +04:00

11 lines
166 B
Kotlin

fun test() {
val a = if (true) {
val x = 1
({ x })
} else {
{ 2 }
}
TypeOf(a): TypeOf<Function0<Int>>
}
class TypeOf<T>(t: T)