mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
16 lines
256 B
Kotlin
Vendored
16 lines
256 B
Kotlin
Vendored
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
|