Fix explicit 'equals' for primitive types

This commit is contained in:
Dmitry Petrov
2019-12-25 11:27:42 +03:00
parent 1d5370a56a
commit babe6eb581
4 changed files with 24 additions and 8 deletions
@@ -1,10 +1,7 @@
// IGNORE_BACKEND_FIR: JVM_IR
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// FILE: equalsNull_lv12.kt
// IGNORE_BACKEND: JVM_IR
// ^ TODO: fix intrinsic for 'equals' for boxed primitives
// FILE: equalsNull.kt
import kotlin.test.*
@@ -4,8 +4,7 @@
// WITH_RUNTIME
// FILE: equalsNull_withExplicitFlag.kt
// Should be ignored on JVM IR.
// ^ TODO: fix intrinsic for 'equals' for boxed primitives
// IGNORE_BACKEND: JVM_IR
// JVM_IR supports behavior since Kotlin 1.3,
// and '-Xno-exception-on-explicit-equals-for-boxed-null' is a fallback flag introduced in 1.2.