mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
13 lines
251 B
Kotlin
Vendored
13 lines
251 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
|
|
inline class S(val string: String)
|
|
|
|
class Outer {
|
|
private fun foo(s: S) = s.string
|
|
|
|
inner class Inner(val string: String) {
|
|
fun bar() = foo(S(string))
|
|
}
|
|
}
|
|
|
|
fun box(): String = Outer().Inner("OK").bar() |