Replaced deprecated inline classes with JvmInline value classes in tests

This commit is contained in:
zhelenskiy
2021-10-09 02:31:28 +03:00
committed by TeamCityServer
parent b0aefd543a
commit 1da46586bd
386 changed files with 1480 additions and 840 deletions
@@ -4,10 +4,14 @@
import java.lang.reflect.Modifier
inline class IC1 public constructor(val i: Int)
inline class IC11 internal constructor(val i: Int)
inline class IC2 private constructor(val i: Int)
inline class IC4 protected constructor(val i: Int)
@JvmInline
value class IC1 public constructor(val i: Int)
@JvmInline
value class IC11 internal constructor(val i: Int)
@JvmInline
value class IC2 private constructor(val i: Int)
@JvmInline
value class IC4 protected constructor(val i: Int)
fun box(): String {
if (!Modifier.isPublic(IC1::class.java.declaredMethods.single { it.name == "constructor-impl" }.modifiers)) return "FAIL 1"