FILE: kt55722.kt public abstract interface A : R|kotlin/Any| { public open fun foo(x: R|T?|): R|kotlin/Unit| { } } public abstract interface B : R|A| { public abstract override fun foo(x: R|F?|): R|kotlin/Unit| } public final fun bar(x: R|A|): R|kotlin/Unit| { when () { (R|/x| is R|B|) -> { R|/x|.R|SubstitutionOverride|(Null(null)) } } }