Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
b32f408767cf86efaa65eb02699fe00bd61d99a6
/
.
/
compiler
/
testData
/
codegen
/
box
/
callableReference
/
nested.kt
blob: 3350c8c3474fca88ca8689df40ea29c98a3aa515 [
file
]
inline
fun
String
.
takeRef
(
ref
:
()
->
Unit
)
=
this
fun f1
()
{}
fun
String
.
f2
()
{}
fun problematic
(
s
:
String
)
=
s
.
takeRef
(
s
.
takeRef
(::
f1
)::
f2
)
fun box
()
=
problematic
(
"OK"
)