// ISSUE: KT-41984 // FILE: A.java import org.jetbrains.annotations.NotNull; public abstract class A { @NotNull public abstract String take(@NotNull V value); @NotNull public abstract String takeInv(@NotNull Inv<@NotNull V> value); } // FILE: main.kt class Inv open class B : A() { override fun take(value: V): String { return "" } override fun takeInv(value: Inv): String = "" } fun test_1(b: B, x: Int, inv: Inv) { b.take(x) b.take(null) b.takeInv(inv) }