Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
0c8f3faeecbeecb0d1430ef2b86dd192a029711c
/
.
/
compiler
/
testData
/
codegen
/
box
/
inlineClasses
/
stringPlus.kt
blob: 159eca388c28eb890933df73c845edcc38c7a4ee [
file
]
// WITH_STDLIB
// WORKS_WHEN_VALUE_CLASS
// LANGUAGE: +ValueClasses
fun
<
T
>
foo
(
a
:
IC
):
T
=
a
.
value
as
T
OPTIONAL_JVM_INLINE_ANNOTATION
value
class
IC
(
val value
:
String
)
fun box
():
String
{
return
foo
<
String
>(
IC
(
"O"
))
+
"K"
}