Files
kotlin/compiler/testData/codegen/bytecodeText/interfaces/traitImplGeneratedOnce.kt
2018-12-21 16:20:45 +01:00

17 lines
282 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
interface A {
fun foo() = 42
}
open class B : A
open class C : B()
class D : C()
// Implementation of foo() should only be generated into B
// 1 INVOKESTATIC A\$DefaultImpls.foo
// Only two declarations should be present: in A and B
// 2 foo\(\)I