// TARGET_BACKEND: JVM // JVM_TARGET: 1.8 // SAM_CONVERSIONS: INDY // FILE: nullabilityAssertions.kt fun box(): String { try { A.bar {} } catch (e: NullPointerException) { return "OK" } return "Should throw NullPointerException" } // FILE: A.java import org.jetbrains.annotations.NotNull; public interface A { void foo(@NotNull String s); static void bar(A a) { a.foo(null); } }