Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
847a2ced07911ac5a943ed41390d054d0e81aa1f
/
.
/
compiler
/
testData
/
codegen
/
box
/
contextParameters
/
contextualLocalFunWithExtensiionReceiver.kt
blob: 4099ee0391d5cd07929bec3a9921708331b9b654 [
file
]
// LANGUAGE: +ContextParameters
class
A
(
val a
:
String
)
class
B
(
val b
:
String
)
fun box
():
String
{
context
(
a
:
A
)
fun B
.
localFun
():
String
{
return
this
.
b
+
a
.
a
}
with
(
A
(
"K"
))
{
with
(
B
(
"O"
))
{
return
localFun
()
}
}
}