Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
f7ff397a310cd4d47fc4849043f8c9d47412e512
/
.
/
compiler
/
testData
/
codegen
/
box
/
defaultArguments
/
referenceAsArg.kt
blob: 64f0546fea8b4547d53cda4b582c62c04b380dd9 [
file
]
// !LANGUAGE: +NewInference +FunctionReferenceWithDefaultValueAsOtherType
// IGNORE_BACKEND_FIR: JVM_IR
// IGNORE_BACKEND: JS_IR
inline
fun
String
.
app
(
f
:
(
String
)
->
String
)
=
f
(
this
)
fun fff
(
s
:
String
,
n
:
Int
=
42
)
=
s
fun box
()
=
"OK"
.
app
(::
fff
)