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
+8 -5
View File
@@ -1,11 +1,14 @@
// !LANGUAGE: +InlineClasses
// WITH_RUNTIME
inline class Bar(val y: Int)
@JvmInline
value class Bar(val y: Int)
inline class Foo<T>(val x: Int)
inline class Foo2<T>(val x: Foo<T>)
inline class Foo3<T>(val x: Bar)
@JvmInline
value class Foo<T>(val x: Int)
@JvmInline
value class Foo2<T>(val x: Foo<T>)
@JvmInline
value class Foo3<T>(val x: Bar)
fun testValueParameter(z: Foo<Any>) = z.x
fun testValueParameter2(z: Foo2<Any>) = z.x.x