interpret block with function literal as function literal
(temporary)
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
fun test() {
|
||||
val a = if (true) {
|
||||
val x = 1
|
||||
({ x })
|
||||
} else {
|
||||
{ 2 }
|
||||
}
|
||||
TypeOf(a): TypeOf<Function0<Int>>
|
||||
}
|
||||
|
||||
class TypeOf<T>(t: T)
|
||||
Reference in New Issue
Block a user