7587f73846
Update tests for ^KT-61937 Merge-request: KT-MR-13678 Merged-by: Anzhela Sukhanova <anzhela.sukhanova@jetbrains.com>
20 lines
227 B
Kotlin
Vendored
20 lines
227 B
Kotlin
Vendored
// !LANGUAGE: +ContextReceivers
|
|
|
|
class Ctx
|
|
|
|
fun Ctx.foo() {}
|
|
|
|
context(Ctx)
|
|
class A {
|
|
fun bar(body: Ctx.() -> Unit) {
|
|
foo()
|
|
body()
|
|
}
|
|
}
|
|
|
|
context(Ctx)
|
|
fun bar(body: Ctx.() -> Unit) {
|
|
foo()
|
|
body()
|
|
}
|