Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
847a2ced07911ac5a943ed41390d054d0e81aa1f
/
.
/
compiler
/
testData
/
codegen
/
box
/
inlineClasses
/
toStringCallingPrivateFun.kt
blob: 7be72982d38efd25633c70128b81d496101d22c1 [
file
]
// WITH_STDLIB
// WORKS_WHEN_VALUE_CLASS
OPTIONAL_JVM_INLINE_ANNOTATION
value
class
IC
(
val x
:
String
)
{
private
fun privateFun
()
=
x
override
fun toString
()
=
privateFun
()
}
fun box
():
String
{
val x
:
Any
=
IC
(
"OK"
)
return
x
.
toString
()
}