Fix bug with member extensions with explicit receiver

Co-authored-by: Ilya Kirillov <ilya.kirillov@jetbrains.com>
This commit is contained in:
Roman Golyshev
2020-07-09 00:02:07 +03:00
committed by Ilya Kirillov
parent df03e31b86
commit a2cf01162e
6 changed files with 31 additions and 6 deletions
@@ -0,0 +1,11 @@
class A {
fun Int.intExtFun() {}
val Int.intExtVal: Int get() = 0
}
fun usage() {
A().<caret>
}
// ABSENT: intExtFun
// ABSENT: intExtVal
@@ -2,6 +2,9 @@ class A {
fun aa() {}
val aaa = 10
fun Int.extFun() {}
fun Int.extVal() {}
fun test() {
<caret>
}
@@ -9,3 +12,6 @@ class A {
// EXIST: aa
// EXIST: aaa
// ESIST: test
// ABSENT: extFun
// ABSENT: extVal
@@ -5,13 +5,10 @@ class A {
fun A.run(action: A.() -> Unit) {}
fun test(a: A) {
fun test() {
val a = A()
a.run {
<caret>
// remove this
Unit
}
}