Report errors for annotations with BINARY or RUNTIME retention on file classes.
This commit is contained in:
+12
@@ -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
|
||||
Reference in New Issue
Block a user