Files
kotlin-fork/compiler/testData/codegen/box/functions/kt2271.kt
T
2018-06-09 19:15:38 +03:00

5 lines
104 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
fun foo(i: Int, j: Int = i) = j
fun box() = if (foo(1) == 1) "OK" else "fail"