IR text tests: Add test with the implementation of a private interface
This commit is contained in:
committed by
Space Team
parent
02604060ae
commit
e0e50e183e
@@ -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>() */
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user