Account for context class receivers when creating the ExpressionReceiver

^KT-54084 Fixed
This commit is contained in:
Nikita Nazarov
2022-09-19 03:46:42 +03:00
committed by Nikita Nazarov
parent f578381726
commit bd742bb95c
12 changed files with 227 additions and 4 deletions
@@ -0,0 +1,13 @@
// !LANGUAGE: +ContextReceivers
class Context {
fun foo() = 1
}
context(Context)
class Test {
fun foo() = 2
fun bar() {
val x = this@Context.foo()
}
}