mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
13 lines
228 B
Kotlin
Vendored
13 lines
228 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
// IGNORE_BACKEND_FIR: JVM_IR
|
|
|
|
inline class S(val string: String)
|
|
|
|
fun foo(s: S): String {
|
|
val anon = object {
|
|
fun bar() = s.string
|
|
}
|
|
return anon.bar()
|
|
}
|
|
|
|
fun box() = foo(S("OK")) |