Files
kotlin/compiler/testData/diagnostics/tests/annotations/annotationModifier.kt
Denis Zharkov fc447e2d2f Parse some builtin annotations as modifiers
But still resolve them as annotations.
Mostly it's needed as begin of migration path, one day they become modifiers anyway

Some tests are dropped because they supposed that `annotation` should have parameter
2015-09-08 08:53:35 +03:00

15 lines
352 B
Kotlin
Vendored

annotation class B
class A {
<!WRONG_MODIFIER_TARGET!>annotation<!> companion object {}
}
<!WRONG_MODIFIER_TARGET!>annotation<!> object O {}
<!WRONG_MODIFIER_TARGET!>annotation<!> interface T {}
<!WRONG_MODIFIER_TARGET!>annotation<!> fun f() = 0
<!WRONG_MODIFIER_TARGET!>annotation<!> val x = 0
<!WRONG_MODIFIER_TARGET!>annotation<!> var y = 0