IR text tests: Add test with the implementation of a private interface

This commit is contained in:
Dmitriy Dolovov
2023-11-21 14:08:47 +01:00
committed by Space Team
parent 02604060ae
commit e0e50e183e
14 changed files with 426 additions and 0 deletions
@@ -0,0 +1,53 @@
private interface I {
abstract fun fooString(): String
fun barString(): String {
return "bar@I"
}
fun bazString(): String {
return "baz@I"
}
abstract fun fooUnit()
fun barUnit() {
}
fun bazUnit() {
}
}
open class C1 : I {
constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
override fun fooString(): String {
return "foo@C1"
}
override fun barString(): String {
return "bar@C1"
}
override fun fooUnit() {
}
override fun barUnit() {
}
}
class C2 : C1 {
constructor() /* primary */ {
super/*C1*/()
/* <init>() */
}
}