Implement missing invoke resolution branch with context receivers
#KT-61937 fixed Note: the current implementation only resolves for a single receiver in each group. See KT-62712 and KT-62709 for the followup.
This commit is contained in:
committed by
Space Team
parent
b89d8a65a1
commit
268d058bbb
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
// !LANGUAGE: +ContextReceivers
|
||||
|
||||
class Ctx
|
||||
|
||||
fun Ctx.foo() {}
|
||||
|
||||
context(Ctx)
|
||||
class A {
|
||||
fun bar(body: Ctx.() -> Unit) {
|
||||
foo()
|
||||
body<!NO_VALUE_FOR_PARAMETER!>()<!>
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user