JVM IR: Avoid IMPLICIT_NOTNULL checks on special bridge methods
...with dynamic type checks, except for the `@PlatformDependent` methods, for which the JVM backend adds null checks.
This commit is contained in:
committed by
Alexander Udalov
parent
9026f89ba5
commit
0328fcaf5d
+12
@@ -0,0 +1,12 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// WITH_RUNTIME
|
||||
// FILE: A.java
|
||||
public class A {
|
||||
public static A nil() { return null; }
|
||||
}
|
||||
|
||||
// FILE: test.kt
|
||||
fun box(): String {
|
||||
val m = mutableMapOf<A, String>()
|
||||
return if (m.remove(A.nil()) == null) "OK" else "Fail"
|
||||
}
|
||||
Reference in New Issue
Block a user