[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:
committed by
Space Team
parent
50310d42e3
commit
fa4a4e56f3
+2
-3
@@ -1,14 +1,13 @@
|
||||
// WITH_STDLIB
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses, +CustomEqualsInValueClasses
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class A(val x: Int) {
|
||||
operator fun equals(other: A) = x % 5 == other.x % 5
|
||||
}
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class B(val x: A)
|
||||
|
||||
fun box() = if (B(A(0)) == B(A(5))) "OK" else "Fail"
|
||||
|
||||
Reference in New Issue
Block a user