mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
12 lines
196 B
Kotlin
Vendored
12 lines
196 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
// IGNORE_BACKEND: 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
|
|
} |