mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 08:31:28 +00:00
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).
12 lines
283 B
Kotlin
Vendored
12 lines
283 B
Kotlin
Vendored
package d
|
|
|
|
<!WRONG_MODIFIER_TARGET!>abstract<!> val a : Int = 1
|
|
|
|
<!WRONG_MODIFIER_TARGET!>override<!> val c : Int = 1
|
|
|
|
<!WRONG_MODIFIER_TARGET!>final<!> fun foo() = 2
|
|
|
|
<!WRONG_MODIFIER_TARGET!>abstract<!> fun baz() = 2
|
|
|
|
class T {}
|
|
<!WRONG_MODIFIER_TARGET!>override<!> fun T.bar() = 2 |