Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
eeaff786f0d0a86b7b827da0028bbafe287d3c04
/
.
/
compiler
/
testData
/
codegen
/
box
/
contextParameters
/
contextualFunctionConversion.kt
blob: bfabc55ef0509f569964de385e3f3cf6f55da43f [
file
]
// LANGUAGE: +ContextParameters
// IGNORE_BACKEND_K1: ANY
fun withContext
(
f
:
context
(
String
)
()
->
String
)
=
f
(
"OK"
)
fun callWithContext
(
f
:
(
String
)
->
String
)
=
withContext
(
f
)
fun box
():
String
{
return
callWithContext
{
s
->
s
}
}