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