mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 08:31:29 +00:00
17 lines
314 B
Kotlin
Vendored
17 lines
314 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
abstract class Base {
|
|
abstract fun foo(a: String = "abc"): String
|
|
}
|
|
|
|
class Derived: Base() {
|
|
override fun foo(a: String): String {
|
|
return a
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
val result = Derived().foo()
|
|
if (result != "abc") return "Fail: $result"
|
|
|
|
return "OK"
|
|
} |