Files
kotlin-fork/compiler/testData/diagnostics/tests/delegation/DelegationNotTotrait.kt
T
2015-10-12 14:36:38 +03:00

16 lines
260 B
Kotlin
Vendored

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