Fix bug with member extensions with explicit receiver
Co-authored-by: Ilya Kirillov <ilya.kirillov@jetbrains.com>
This commit is contained in:
committed by
Ilya Kirillov
parent
df03e31b86
commit
a2cf01162e
+11
@@ -0,0 +1,11 @@
|
||||
class A {
|
||||
fun Int.intExtFun() {}
|
||||
val Int.intExtVal: Int get() = 0
|
||||
}
|
||||
|
||||
fun usage() {
|
||||
A().<caret>
|
||||
}
|
||||
|
||||
// ABSENT: intExtFun
|
||||
// ABSENT: intExtVal
|
||||
+6
@@ -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
|
||||
Vendored
+2
-5
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user