KTIJ-26627 [AA] Correctly handle object receivers of property accesses
Also remove redundant code from `canBePossibleToDropReceiver` ^KTIJ-26627 Fixed
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
package test
|
||||
|
||||
fun <T> T.extFun(): T = this
|
||||
|
||||
object Bar
|
||||
|
||||
class Other
|
||||
|
||||
fun Other.usage() {
|
||||
<expr>Bar.extFun()</expr>
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
Before shortening: Bar.extFun()
|
||||
with DO_NOT_SHORTEN:
|
||||
with SHORTEN_IF_ALREADY_IMPORTED:
|
||||
with SHORTEN_AND_IMPORT:
|
||||
with SHORTEN_AND_STAR_IMPORT:
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
package test
|
||||
|
||||
val <T> T.extProperty: T
|
||||
get() = this
|
||||
|
||||
object Bar
|
||||
|
||||
class Other
|
||||
|
||||
fun Other.usage() {
|
||||
<expr>Bar.extProperty</expr>
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
Before shortening: Bar.extProperty
|
||||
with DO_NOT_SHORTEN:
|
||||
with SHORTEN_IF_ALREADY_IMPORTED:
|
||||
with SHORTEN_AND_IMPORT:
|
||||
with SHORTEN_AND_STAR_IMPORT:
|
||||
Reference in New Issue
Block a user