Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
534b00eff856e0e4dcaf105df9a043d9b1263ff7
/
.
/
compiler
/
testData
/
codegen
/
box
/
contextParameters
/
kt74998.kt
blob: f10c23769f88923338c51660f92f42313318c7a6 [
file
]
// LANGUAGE: +ContextParameters
fun box
():
String
{
var
res
=
""
with
(
1
)
{
with
(
"bar"
)
{
foo
{
res
=
"OK"
}
}
}
return
res
}
context
(
_
:
Int
)
inline
fun
String
.
foo
(
block
:
context
(
Int
)
String
.()
->
Unit
)
{
block
(
1
,
this
)
}