Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
2b455fc1ba7dcb99fa03fdfc31c7672d6ccfc9fd
/
.
/
compiler
/
testData
/
codegen
/
box
/
callableReference
/
kt49526b.kt
blob: e59e73085e0ebd3d7d4cf513ed1b08ed7f88e1ec [
file
]
// WITH_STDLIB
inline
fun
<
T
>
useRef
(
value
:
T
,
f
:
(
T
)
->
Boolean
)
=
f
(
value
)
fun box
():
String
{
val chars
=
listOf
(
'a'
)
+
"-"
val
ref
=
chars
::
contains
return
if
(
ref
(
'a'
))
"OK"
else
"Failed"
}