mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 00:21:32 +00:00
10 lines
191 B
Kotlin
Vendored
10 lines
191 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
// IGNORE_BACKEND_FIR: JVM_IR
|
|
|
|
inline class S(val string: String)
|
|
|
|
sealed class Sealed(val x: S)
|
|
|
|
class Test(x: S) : Sealed(x)
|
|
|
|
fun box() = Test(S("OK")).x.string |