FIR: Avoid propagation of @Exact annotation through elvis
This commit is contained in:
committed by
teamcityserver
parent
0d9ad62d4a
commit
7eb758fab1
+16
@@ -0,0 +1,16 @@
|
||||
// FIR_IDENTICAL
|
||||
// FULL_JDK
|
||||
// SKIP_TXT
|
||||
package test
|
||||
import kotlin.reflect.KClass
|
||||
|
||||
annotation class RunsInActiveStoreMode
|
||||
|
||||
val w1 = ""::class.java
|
||||
val w2 = ""::class.java
|
||||
|
||||
private fun <T : Annotation> foo(annotationClass: Class<T>) = w1.getAnnotation(annotationClass) ?: w2.getAnnotation(annotationClass)
|
||||
|
||||
fun main() {
|
||||
val x: Any = foo(RunsInActiveStoreMode::class.java)
|
||||
}
|
||||
Reference in New Issue
Block a user