[Tests] Remove unnecessary usages of OPTIONAL_JVM_INLINE_ANNOTATION

Signed-off-by: Evgeniy.Zhelenskiy <Evgeniy.Zhelenskiy@jetbrains.com>

#KT-1179
This commit is contained in:
Evgeniy.Zhelenskiy
2022-11-29 04:48:43 +01:00
committed by Space Team
parent 50310d42e3
commit fa4a4e56f3
67 changed files with 269 additions and 326 deletions
@@ -1,5 +1,4 @@
// WITH_STDLIB
// WORKS_WHEN_VALUE_CLASS
// LANGUAGE: +ValueClasses, +CustomEqualsInValueClasses
// TARGET_BACKEND: JVM_IR
// CHECK_BYTECODE_LISTING
@@ -7,14 +6,14 @@
import java.lang.AssertionError
import kotlin.math.abs
OPTIONAL_JVM_INLINE_ANNOTATION
@JvmInline
value class IC1(val x: Double) {
fun equals(other: IC1): Boolean {
return abs(x - other.x) < 0.5
}
}
OPTIONAL_JVM_INLINE_ANNOTATION
@JvmInline
value class IC2(val x: Int) {
override fun equals(other: Any?): Boolean {
if (other !is IC2) {