Replaced deprecated inline classes with JvmInline value classes in tests
This commit is contained in:
committed by
TeamCityServer
parent
b0aefd543a
commit
1da46586bd
@@ -1,7 +1,8 @@
|
||||
// !LANGUAGE: +InlineClasses
|
||||
// WITH_RUNTIME
|
||||
// IGNORE_BACKEND: JVM
|
||||
// IGNORE_LIGHT_ANALYSIS
|
||||
inline class IC(val x: String)
|
||||
@JvmInline
|
||||
value class IC(val x: String)
|
||||
|
||||
fun IC?.foo() = toString() // `IC?` unboxed into `String?`
|
||||
fun IC?.bar() = "$this"
|
||||
|
||||
Reference in New Issue
Block a user