Files
kotlin-fork/compiler/testData/diagnostics/tests/DelegationNotTotrait.kt
T
2012-09-06 17:24:37 +04:00

16 lines
248 B
Kotlin

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