FIR: Avoid propagation of @Exact annotation through elvis

This commit is contained in:
Denis.Zharkov
2021-11-24 15:13:01 +03:00
committed by teamcityserver
parent 0d9ad62d4a
commit 7eb758fab1
6 changed files with 56 additions and 1 deletions
@@ -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)
}