Files
kotlin-fork/j2k/testData/fileOrElement/function/parameterModification.kt
T
Alexander Udalov 3c859caf2b j2k: flatten test cases and testData directory structure
Move j2k/test/tests -> j2k/tests, j2k/test/testData -> j2k/testData
2015-01-03 00:52:59 +03:00

7 lines
131 B
Kotlin
Vendored

fun foo(p1: Int, p2: Int, p3: Int): Int {
var p1 = p1
var p3 = p3
p1++
if (p2 > 0) p3 = 0
return p1 + p2 + p3
}