mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
12 lines
200 B
Kotlin
Vendored
12 lines
200 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
// IGNORE_BACKEND_FIR: JVM_IR
|
|
// WITH_RUNTIME
|
|
|
|
inline class Foo(val z: String)
|
|
|
|
var f = Foo("zzz")
|
|
|
|
fun box(): String {
|
|
(::f).set(Foo("OK"))
|
|
return (::f).get().z
|
|
} |