Sign in
◑
Theme
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
fa6706d92e6b4fd10bdb26da483b20467cd68a42
/
.
/
compiler
/
testData
/
codegen
/
box
/
extensionClasses
/
simple.kt
blob: 4b5e24b8ce2ae755bff5bc72d817e52b86413af9 [
file
]
// LANGUAGE: +ContextReceivers
// 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
()
}