Files
kotlin/compiler/testData/codegen/box/functions/defaultargs6.kt
2015-05-12 19:43:17 +02:00

8 lines
141 B
Kotlin
Vendored

interface A {
fun foo(x: Int, y: Int = x + 20, z: Int = y * 2) = z
}
class B : A {}
fun box() = if (B().foo(1) == 42) "OK" else "Fail"