Add new tests

This commit is contained in:
Mikhael Bogdanov
2020-02-04 10:57:33 +01:00
committed by Mikhail Bogdanov
parent 0570c05683
commit 0c0bd67a6b
50 changed files with 1959 additions and 1 deletions
@@ -0,0 +1,22 @@
// !JVM_DEFAULT_MODE: all-compatibility
// JVM_TARGET: 1.8
interface A {
fun foo() = "FAIL"
}
interface Left : A { }
interface Right : A {
override fun foo() = "OK"
}
interface C : Left, Right {}
fun box(): String {
val x = object : C {}
return x.foo()
}
// 0 INVOKESTATIC .*\$DefaultImpls\.foo