Account for context class receivers when creating the ExpressionReceiver
^KT-54084 Fixed
This commit is contained in:
committed by
Nikita Nazarov
parent
f578381726
commit
bd742bb95c
+13
@@ -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()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user