mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 15:54:03 +00:00
10 lines
185 B
Kotlin
Vendored
10 lines
185 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
// IGNORE_BACKEND: JVM_IR
|
|
|
|
inline class S(val string: String)
|
|
|
|
abstract class Base(val x: S)
|
|
|
|
class Test(x: S) : Base(x)
|
|
|
|
fun box() = Test(S("OK")).x.string |