// FIR_IDENTICAL // !CHECK_TYPE interface Either interface Left: Either interface Right: Either class C1(val v1: Int) class C2(val v2: Int) fun _as_left(e: Either): Any? { val v = e as? Left return checkSubtype?>(v) } fun _as_right(e: Either): Any? { val v = e as? Right return checkSubtype?>(v) }