Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
417088e15084daef5c72bc17ea66d3cf3c026c33
/
.
/
compiler
/
testData
/
codegen
/
box
/
contextParameters
/
classCastException.kt
blob: 5042f93bbd1644b48d2fe468f832eefba0c4cb8a [
file
]
// LANGUAGE: +ContextParameters
class
Receiver
object
Context
interface
Contract
{
context
(
context
:
Context
)
fun
Receiver
.
foo
()
=
"OK"
}
object
Owner
:
Contract
fun box
():
String
{
return
with
(
Context
)
{
with
(
Owner
)
{
Receiver
().
foo
()
}
}
}