Introduce EXPERIMENTAL_ANNOTATION_WITH_WRONG_RETENTION diagnostic

#KT-22941 Fixed
This commit is contained in:
Mikhail Glukhikh
2021-05-19 14:52:53 +03:00
committed by teamcityserver
parent 7393465696
commit d8d38862d9
77 changed files with 169 additions and 50 deletions
@@ -2,8 +2,10 @@ package org.test
@Deprecated("Warning1", level = DeprecationLevel.WARNING)
@RequiresOptIn
@Retention(AnnotationRetention.BINARY)
annotation class Warning1
@Deprecated("Warning2", level = DeprecationLevel.WARNING)
@RequiresOptIn
@Retention(AnnotationRetention.BINARY)
annotation class Warning2
+1
View File
@@ -2,6 +2,7 @@ package org.test
class Outer {
@RequiresOptIn
@Retention(AnnotationRetention.BINARY)
annotation class Nested
}