blob: 2cad85ee077aaa39e84b7cbf0d33f2a1f711a7cc [file]
// RUN_PIPELINE_TILL: BACKEND
// FIR_IDENTICAL
// 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 */