Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
847a2ced07911ac5a943ed41390d054d0e81aa1f
/
.
/
compiler
/
testData
/
codegen
/
box
/
evaluate
/
stringConcatenationWithObject.kt
blob: 4a9b578597c01ff05abfd09ed9c8d410df3ccb7c [
file
]
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
}