Files
kotlin-fork/compiler/testData/diagnostics/tests/delegation/DelegationNotTotrait.fir.kt
T
2021-06-29 02:00:11 +03:00

16 lines
259 B
Kotlin
Vendored

open class Foo() {
}
class Barrr() : <!DELEGATION_NOT_TO_INTERFACE, SUPERTYPE_NOT_INITIALIZED!>Foo<!> by Foo() {}
interface T {}
class Br(t : T) : T by t {}
open enum class EN() {
A
}
class Test2(e : EN) : <!DELEGATION_NOT_TO_INTERFACE!>EN<!> by e {}