Replaced deprecated inline classes with JvmInline value classes in tests
This commit is contained in:
committed by
TeamCityServer
parent
b0aefd543a
commit
1da46586bd
@@ -1,3 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
// WITH_REFLECT
|
||||
// TARGET_BACKEND: JVM
|
||||
|
||||
@@ -5,10 +6,14 @@ package root
|
||||
|
||||
import kotlin.reflect.KClass
|
||||
|
||||
inline class IcInt(val x: Int)
|
||||
inline class IcLong(val l: Long)
|
||||
inline class IcAny(val a: Any?)
|
||||
inline class IcOverIc(val o: IcLong)
|
||||
@JvmInline
|
||||
value class IcInt(val x: Int)
|
||||
@JvmInline
|
||||
value class IcLong(val l: Long)
|
||||
@JvmInline
|
||||
value class IcAny(val a: Any?)
|
||||
@JvmInline
|
||||
value class IcOverIc(val o: IcLong)
|
||||
|
||||
fun check(c: KClass<*>, s: String) {
|
||||
if (c.toString() != s) error("Fail, expected: $s, actual: $c")
|
||||
|
||||
Reference in New Issue
Block a user