// IGNORE_BACKEND_FIR: JVM_IR // TARGET_BACKEND: JVM // WITH_RUNTIME // FILE: test.kt import kotlin.test.* fun box(): String { assertFailsWith { J.j().method() } assertFailsWith { J.j().field } assertFailsWith { J.j().field = 42 } return "OK" } // FILE: J.java public class J { public Object field; public void method() {} public static J j() { return null; } } // @TestKt.class: // 0 checkNotNullExpressionValue // 0 checkExpressionValueIsNotNull