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