Report errors for annotations with BINARY or RUNTIME retention on file classes.

This commit is contained in:
Dmitry Petrov
2015-09-15 18:49:18 +03:00
parent eba9f0f0ad
commit da026f1480
9 changed files with 129 additions and 5 deletions
@@ -0,0 +1,12 @@
// FILE: annotations.kt
@Target(AnnotationTarget.CLASS)
public annotation class ClassAnn
@Target(AnnotationTarget.FILE)
public annotation class FileAnn
// FILE: 1.kt
<!WRONG_ANNOTATION_TARGET_WITH_USE_SITE_TARGET!>@file:ClassAnn<!>
// FILE: 2.kr
@file:FileAnn