Files
kotlin-fork/compiler/testData/diagnostics/tests/DelegationNotTotrait.kt
T
2012-08-13 22:37:27 +03:00

16 lines
220 B
Kotlin

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