Remove obsolete assertion in ExpressionCodegen

With the mangling added in 488418d960, there's no longer any risk in
writing "special" function name ("<anonymous>" in this case) to the
local variable table.

 #KT-34356 Fixed
This commit is contained in:
Alexander Udalov
2019-10-25 12:45:08 +02:00
parent e7fe144f5c
commit dac0fc7397
7 changed files with 34 additions and 3 deletions
@@ -0,0 +1,9 @@
fun <T> block(block: () -> T): T = block()
fun foo() {}
fun test(): () -> Unit = block { fun() = foo() }
fun box(): String {
test()
return "OK"
}