blob: 1173085eaf3b3fb7e3d684e0abf0ba494451b076 [file]
// RUN_PIPELINE_TILL: FRONTEND
// CHECK_TYPE
sealed class KtClassifierSymbol
interface KtNamedSymbol
abstract class KtTypeParameterSymbol : KtClassifierSymbol() {}
sealed class KtClassLikeSymbol : KtClassifierSymbol() {}
fun foo(symbol: KtClassifierSymbol) {
if (symbol !is KtNamedSymbol) return
val x = when (symbol) {
is KtClassLikeSymbol -> "1"
is KtTypeParameterSymbol -> "2"
}
x checkType { _<String>() }
}
/* GENERATED_FIR_TAGS: classDeclaration, funWithExtensionReceiver, functionDeclaration, functionalType, ifExpression,
infix, interfaceDeclaration, intersectionType, isExpression, lambdaLiteral, localProperty, nullableType,
propertyDeclaration, sealed, smartcast, stringLiteral, typeParameter, typeWithExtension, whenExpression, whenWithSubject */