mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
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
15 lines
352 B
Kotlin
Vendored
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 |