FIR2IR: add test for KT-55465
This commit is contained in:
committed by
Space Team
parent
4cda89db9e
commit
b68a26865a
@@ -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)
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user