Files
kotlin/compiler/testData/codegen/script/parameterClosure.kts
Mikhail Zarechenskiy 7739677a06 Adapt ScriptCodegenTests to last changes
Get rid of possibility to configure script definition without template
class, therefore all tests now are using default script argument
2016-09-20 16:23:41 +03:00

8 lines
112 B
Kotlin
Vendored

// param: 10
fun addX(y: Int) = java.lang.Integer.parseInt(args[0]) + y
val rv = addX(3)
// expected: rv: 13