Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
06ab8cc69e303e70578de24dd9a1cf4ebafff93a
/
.
/
compiler
/
testData
/
codegen
/
box
/
involvesIrInterpreter
/
stringConcatenationWithObject.kt
blob: b1ef435f2db715f1f3d774169a4a5da70fec1353 [
file
]
// DONT_TARGET_EXACT_BACKEND: JVM
object
K
:
Code
(
"K"
)
open
class
Code
(
val x
:
String
)
{
override
fun toString
()
=
"$x"
}
class
O
{
companion
object
:
Code
(
"O"
)
}
fun box
():
String
{
return
"$O"
+
"$K"
// must not be evaluated during compile time
}