Files
kotlin/compiler/testData/codegen/script/secondLevelFunctionClosure.ktscript
2012-05-31 19:31:40 +04:00

12 lines
94 B
Plaintext

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