blob: 2cb74e4dd5afbd70803f6f5f84304d5f77c1f334 [file]
// RUN_PIPELINE_TILL: CODEGEN
// ISSUE: KT-51272
import kotlin.reflect.KClass
fun testOnKClass(rootClass: KClass<Any>): Int {
return when (rootClass) {
Collection::class -> 1
else -> 2
}
}
fun testOnClass(rootClass: Class<Any>): Int {
return when (rootClass) {
Collection::class -> 1
else -> 2
}
}
/* GENERATED_FIR_TAGS: classReference, equalityExpression, functionDeclaration, integerLiteral, whenExpression,
whenWithSubject */