Files
kotlin/compiler/testData/codegen/script/secondLevelFunction.kts
Ilya Ryzhenkov 98c54f39bb Unify script file extensions to "kts" so that IDEA, compiler and tests agree when to parse as SCRIPT.
Include kt* files into formatter test generation, to test scripting formatting
2014-03-24 18:17:50 +04:00

11 lines
94 B
Kotlin
Vendored

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