Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
6f1fbe2c8085532ef2fa66bf26fdf2b04c5cca97
/
.
/
compiler
/
testData
/
codegen
/
box
/
extensionClasses
/
simple.kt
blob: fff27db14f9fec9218e272b06f86a42589236afd [
file
]
// LANGUAGE: +ContextReceivers, -ContextParameters
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND_K2: ANY
// IGNORE_HEADER_MODE: JVM_IR
class
A
{
val ok
=
"OK"
}
context
(
A
)
class
B
{
fun result
()
=
ok
}
fun box
()
=
with
(
A
())
{
B
().
result
()
}