mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-18 15:54:05 +00:00
11 lines
220 B
Kotlin
Vendored
11 lines
220 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
|
|
inline class S(val string: String)
|
|
|
|
class Outer(val s1: S) {
|
|
inner class Inner(val s2: S) {
|
|
val test = s1.string + s2.string
|
|
}
|
|
}
|
|
|
|
fun box() = Outer(S("O")).Inner(S("K")).test |