Files
kotlin/compiler/testData/codegen/script/secondLevelFunctionClosure.kts
Pavel V. Talanov ad58617753 Script refactoring, codegen tests: change test data according to semantics change
Add some new tests for uncovered cases
2015-11-19 22:57:01 +03:00

12 lines
111 B
Kotlin
Vendored

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