// !DIAGNOSTICS: -UNUSED_PARAMETER // FILE: B.java public abstract class B implements A {} // FILE: test.kt interface A { val content: T } fun f(x: Any?) {} fun f(x: Byte) {} fun f(x: Char) {} fun g(i: Int) {} fun g(x: B) { val y = x.content if (y == null) { f(y) g(y) } if (y is Nothing?) { f(y) g(y) } }