FIR2IR: add test for KT-55465

This commit is contained in:
Mikhail Glukhikh
2023-02-16 19:35:29 +01:00
committed by Space Team
parent 4cda89db9e
commit b68a26865a
9 changed files with 282 additions and 0 deletions
@@ -0,0 +1,34 @@
interface A {
abstract fun f(x: String = "OK"): String
}
class B : A {
constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
override fun f(x: String): String {
return x
}
}
class C : A {
constructor(x: A) /* primary */ {
super/*Any*/()
/* <init>() */
}
val x: A
field = x
get
override fun f(x: String): String {
return <this>.#x.f(x = x)
}
}