Replaced deprecated inline classes with JvmInline value classes in tests
This commit is contained in:
committed by
TeamCityServer
parent
b0aefd543a
commit
1da46586bd
+3
-2
@@ -1,10 +1,11 @@
|
||||
// !LANGUAGE: +InlineClasses
|
||||
// WITH_RUNTIME
|
||||
|
||||
@file:Suppress("SECONDARY_CONSTRUCTOR_WITH_BODY_INSIDE_INLINE_CLASS")
|
||||
|
||||
var global = "wrong"
|
||||
|
||||
inline class Foo(val x: String) {
|
||||
@JvmInline
|
||||
value class Foo(val x: String) {
|
||||
constructor(y: Int) : this(y.toString())
|
||||
constructor(z: Long) : this(z.toInt() + 1)
|
||||
constructor(other: Char) : this(other.toInt().toString()) {
|
||||
|
||||
Reference in New Issue
Block a user