Files
kotlin/compiler/testData/codegen/script/secondLevelFunction.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

11 lines
107 B
Kotlin
Vendored

var x: Int = 0
if (true) {
fun foo(y: Int) = y + 20
x = foo(9)
}
val rv = x
// expected: rv: 29