Sign in
◑
Theme
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
9fe0f055c5c4e6ededc6378ef6df3f28ee841978
/
.
/
compiler
/
testData
/
codegen
/
box
/
callableReference
/
kt49526b.kt
blob: fe3d3a1076ac39e21463b6874213130b88481b59 [
file
]
// IGNORE_BACKEND: NATIVE
// 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"
}