Files
kotlin-fork/compiler/testData/ir/irText/firProblems/ErrorInDefaultValue.kt.txt
T
2024-02-16 10:19:38 +00:00

36 lines
414 B
Kotlin
Vendored

class B : A {
constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
override fun f(x: String): String {
return x
}
}
class C : A {
val x: A
field = x
get
constructor(x: A) /* primary */ {
super/*Any*/()
/* <init>() */
}
override fun f(x: String): String {
return <this>.#x.f(x = x)
}
}
interface A {
abstract fun f(x: String = "OK"): String
}