Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
6330def4271b547b5c7db5f9759e387de2908e94
/
.
/
compiler
/
testData
/
codegen
/
box
/
delegation
/
sealedClass.kt
blob: cf996b820c42fd31f23e9ebdac6b6f817e6df1e6 [
file
] [
log
] [
blame
]
// TARGET_BACKEND: JVM_IR
// WITH_STDLIB
sealed
class
A
:
CharSequence
{
data
class
B
(
val c
:
CharSequence
)
:
A
(),
CharSequence
by
c
}
fun box
():
String
{
return
A
.
B
(
"OK"
).
c
.
toString
()
}