blob: d3a25a6cc4caff7e37532b7f7ee4dbddcac90757 [file]
// IGNORE_BACKEND: ANY
// Since KT-76950, we have new implicit casts in testNZ which lead to different bytecode compared to K1
// FILE: Z.kt
inline class Z(val x: Int)
// FILE: test.kt
fun testZ(z: Z) = z.equals(z)
fun testZ(z: Z, a: Any?) = z.equals(a)
fun testNZ(z: Z?) = z?.equals(z)
// @TestKt.class:
// 0 INVOKESTATIC Z\$Erased\.equals
// 0 INVOKESTATIC Z\-Erased\.equals
// 1 INVOKESTATIC Z\.equals-impl0 \(II\)Z
// 1 INVOKESTATIC Z\.equals-impl \(ILjava/lang/Object;\)Z
// 1 INVOKEVIRTUAL Z.equals
// 0 INVOKEVIRTUAL Z.unbox-impl