ab7e3ce78c
(temporary)
11 lines
166 B
Kotlin
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) |