Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
847a2ced07911ac5a943ed41390d054d0e81aa1f
/
.
/
compiler
/
testData
/
codegen
/
box
/
callableReference
/
callableReferencetoInnerAndLocal.kt
blob: 1e3cc9f5a5cedff35473ba8c12fecd02daa18db0 [
file
]
import
kotlin
.
reflect
.
KProperty1
fun
<
T
>
genericFun
(
value
:
T
):
T
{
class
Local
(
val item
:
T
)
val unwrapItem
:
KProperty1
<
Local
,
T
>
=
Local
::
item
return
unwrapItem
(
Local
(
value
))
}
fun box
():
String
{
return
genericFun
(
"OK"
)
}