mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +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).
9 lines
198 B
Kotlin
Vendored
9 lines
198 B
Kotlin
Vendored
fun test() {
|
|
class A {
|
|
<!WRONG_MODIFIER_CONTAINING_DECLARATION!>companion<!> object {}
|
|
}
|
|
|
|
object {
|
|
<!WRONG_MODIFIER_CONTAINING_DECLARATION!>companion<!> object {}
|
|
}
|
|
} |