blob: 4b144daee4cda7fb147a3693e0012173f8db1041 [file]
// RUN_PIPELINE_TILL: BACKEND
// FULL_JDK
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)
}
/* GENERATED_FIR_TAGS: annotationDeclaration, capturedType, classReference, elvisExpression, flexibleType,
functionDeclaration, localProperty, outProjection, propertyDeclaration, stringLiteral, typeConstraint, typeParameter */