Annotation target checking in front-end, a set of tests for different annotation targets, existing test fixes

No checks for erroneous annotations. Additional checks for identifiers.
This commit is contained in:
Mikhail Glukhikh
2015-07-06 20:00:06 +03:00
parent 609d696202
commit 0d2a81f098
82 changed files with 1445 additions and 46 deletions
+3 -2
View File
@@ -1,8 +1,8 @@
@file:kotlin.deprecated("message")
<error>@file:kotlin.deprecated("message")</error>
@file:suppress(<error>BAR</error>)
@file:suppress(BAZ)
@<error>k</error>otlin.deprecated("message")
<error>@<error>k</error>otlin.deprecated("message")</error>
@<error>s</error>uppress(<error>BAR</error>)
@<error>s</error>uppress(BAZ)
@@ -19,4 +19,5 @@ package boo
val BAZ = "baz"
val N = 0
target(AnnotationTarget.FILE)
annotation class myAnnotation(val i: Int, val s: String)