mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
11 lines
195 B
Kotlin
Vendored
11 lines
195 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
// IGNORE_BACKEND_FIR: JVM_IR
|
|
|
|
inline class Foo(val s: String) {
|
|
fun asResult(): String = s
|
|
}
|
|
|
|
fun box(): String {
|
|
val a = Foo("OK")
|
|
return a.asResult()
|
|
} |