Files
kotlin/compiler/testData/codegen/script/secondLevelFunctionClosure.ktscript
2012-06-05 22:56:26 +04:00

12 lines
98 B
Plaintext

val z = 30
val x: Int
if (true) {
fun foo() = z + 20
x = foo()
}
x
// expected: rv: 50