mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 15:53:46 +00:00
9 lines
171 B
Kotlin
Vendored
9 lines
171 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
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"
|