mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
Make it static, extract a method which finds an implementation in a trait for a fake override
16 lines
247 B
Kotlin
16 lines
247 B
Kotlin
trait 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\$\$TImpl.foo
|
|
|
|
// Only two declarations should be present: in A and B
|
|
// 2 foo\(\)I
|