FIR: add check of SOURCE retention for EXPRESSION-targeted annotation
This commit is contained in:
-13
@@ -1,13 +0,0 @@
|
||||
// !LANGUAGE: +RestrictRetentionForExpressionAnnotations
|
||||
|
||||
@Target(AnnotationTarget.EXPRESSION)
|
||||
@Retention(AnnotationRetention.SOURCE)
|
||||
annotation class TestRetentionSource
|
||||
|
||||
@Target(AnnotationTarget.EXPRESSION)
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
annotation class TestRetentionBinary
|
||||
|
||||
@Target(AnnotationTarget.EXPRESSION)
|
||||
@Retention(AnnotationRetention.RUNTIME)
|
||||
annotation class TestRetentionRuntime
|
||||
Vendored
+1
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// !LANGUAGE: +RestrictRetentionForExpressionAnnotations
|
||||
|
||||
@Target(AnnotationTarget.EXPRESSION)
|
||||
|
||||
+2
-2
@@ -5,9 +5,9 @@
|
||||
annotation class TestRetentionSource
|
||||
|
||||
@Target(AnnotationTarget.EXPRESSION)
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
<!RESTRICTED_RETENTION_FOR_EXPRESSION_ANNOTATION!>@Retention(AnnotationRetention.BINARY)<!>
|
||||
annotation class TestRetentionBinary
|
||||
|
||||
@Target(AnnotationTarget.EXPRESSION)
|
||||
@Retention(AnnotationRetention.RUNTIME)
|
||||
<!RESTRICTED_RETENTION_FOR_EXPRESSION_ANNOTATION!>@Retention(AnnotationRetention.RUNTIME)<!>
|
||||
annotation class TestRetentionRuntime
|
||||
Reference in New Issue
Block a user