Replaced deprecated inline classes with JvmInline value classes in tests
This commit is contained in:
committed by
TeamCityServer
parent
b0aefd543a
commit
1da46586bd
+4
-1
@@ -1,9 +1,12 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
interface IFoo<T> {
|
||||
fun foo(x: T): String = "O"
|
||||
fun T.bar(): String = "K"
|
||||
}
|
||||
|
||||
inline class L(val x: Long) : IFoo<L>
|
||||
@JvmInline
|
||||
value class L(val x: Long) : IFoo<L>
|
||||
|
||||
fun box(): String {
|
||||
val z = L(0L)
|
||||
|
||||
Reference in New Issue
Block a user