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
@@ -1,8 +1,11 @@
// !LANGUAGE: +InlineClasses
// WITH_RUNTIME
inline class Z1(val x: String?)
inline class Z2(val z: Z1)
inline class ZN(val z: Z1?)
@JvmInline
value class Z1(val x: String?)
@JvmInline
value class Z2(val z: Z1)
@JvmInline
value class ZN(val z: Z1?)
fun wrap1(x: String): Z1? = if (x.length == 0) null else Z1(x)
fun wrap2(x: String): Z2? = if (x.length == 0) null else Z2(Z1(x))