blob: 6f46b0e5d23511e9261a6c469cfcd413ee634c3a [file]
// RUN_PIPELINE_TILL: CODEGEN
interface Expr
class BinOp(val operator : String) : Expr
fun test(e : Expr) {
if (e is BinOp) {
when (e.operator) {
else -> 0
}
}
}
/* GENERATED_FIR_TAGS: classDeclaration, functionDeclaration, ifExpression, integerLiteral, interfaceDeclaration,
isExpression, primaryConstructor, propertyDeclaration, whenExpression, whenWithSubject */