mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
12 lines
195 B
Kotlin
Vendored
12 lines
195 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
|
|
inline class S(val string: String)
|
|
|
|
fun foo(s: S): String {
|
|
class Local {
|
|
fun bar() = s.string
|
|
}
|
|
return Local().bar()
|
|
}
|
|
|
|
fun box() = foo(S("OK")) |