mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-10 08:31:29 +00:00
15 lines
183 B
Kotlin
Vendored
15 lines
183 B
Kotlin
Vendored
var result = "Fail"
|
|
|
|
inline class A(val value: String)
|
|
|
|
inline class B(val a: A) {
|
|
init {
|
|
result = a.value
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
B(A("OK"))
|
|
return result
|
|
}
|