Replaced deprecated inline classes with JvmInline value classes in tests
This commit is contained in:
committed by
TeamCityServer
parent
b0aefd543a
commit
1da46586bd
Vendored
+8
-4
@@ -1,18 +1,22 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
inline class IcInt(val i: Int) {
|
||||
@JvmInline
|
||||
value class IcInt(val i: Int) {
|
||||
fun simple(): String = i.toString()
|
||||
}
|
||||
|
||||
inline class IcLong(val l: Long) {
|
||||
@JvmInline
|
||||
value class IcLong(val l: Long) {
|
||||
fun simple(): String = l.toString()
|
||||
}
|
||||
|
||||
inline class IcAny(val a: Any?) {
|
||||
@JvmInline
|
||||
value class IcAny(val a: Any?) {
|
||||
fun simple(): String = a?.toString() ?: "null"
|
||||
}
|
||||
|
||||
inline class IcOverIc(val o: IcLong) {
|
||||
@JvmInline
|
||||
value class IcOverIc(val o: IcLong) {
|
||||
fun simple(): String = o.toString()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user