| // RUN_PIPELINE_TILL: CODEGEN | |
| // 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 */ |