4bd48c4796
Most of modifier diagnostic is expressed by REDUNDANT_MODIFIER, INCOMPATIBLE_MODIFIERS, REPEATED_MODIFIER, WRONG_MODIFIER_TARGET, WRONG_MODIFIER_PARENT. A set of modifier diagnostics is not in use now (but not deleted yet).
16 lines
252 B
Kotlin
Vendored
16 lines
252 B
Kotlin
Vendored
open class Foo() {
|
|
|
|
}
|
|
|
|
class Barrr() : <!DELEGATION_NOT_TO_TRAIT!>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_TRAIT!>EN<!> by e {}
|