Introduce EXPERIMENTAL_ANNOTATION_WITH_WRONG_RETENTION diagnostic
#KT-22941 Fixed
This commit is contained in:
committed by
teamcityserver
parent
7393465696
commit
d8d38862d9
@@ -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
|
||||
|
||||
@@ -2,6 +2,7 @@ package org.test
|
||||
|
||||
class Outer {
|
||||
@RequiresOptIn
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
annotation class Nested
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user