Files
kotlin-fork/compiler/testData/codegen/bytecodeText/jvm8/jvmDefault/allCompatibility/simpleDiamond.kt
T
Mikhael Bogdanov 0c0bd67a6b Add new tests
2020-04-09 07:37:30 +02:00

23 lines
318 B
Kotlin
Vendored

// !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