[Analysis API] KTIJ-23588 Do not ignore calls qualified with objects
^KTIJ-23588 Fixed
This commit is contained in:
+1
@@ -0,0 +1 @@
|
||||
dependency.Bar.extFun
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
// FILE: main.kt
|
||||
package test
|
||||
|
||||
import dependency.Bar.extFun
|
||||
|
||||
fun usage() {
|
||||
with(dependency.Bar) {
|
||||
with(10) {
|
||||
extFun()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// FILE: dependency.kt
|
||||
package dependency
|
||||
|
||||
object Bar {
|
||||
fun Int.extFun() {}
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
dependency.Bar.callable
|
||||
dependency.Bar.function
|
||||
dependency.Bar.property
|
||||
Vendored
+30
@@ -0,0 +1,30 @@
|
||||
// FILE: main.kt
|
||||
import dependency.Bar.property
|
||||
import dependency.Bar.function
|
||||
import dependency.Bar.callable
|
||||
|
||||
fun test() {
|
||||
dependency.Bar.property
|
||||
dependency.Bar.function()
|
||||
dependency.Bar::callable
|
||||
|
||||
with(dependency.Bar) {
|
||||
property
|
||||
function()
|
||||
::callable
|
||||
}
|
||||
|
||||
val bar = dependency.Bar
|
||||
bar.property
|
||||
bar.function()
|
||||
bar::callable
|
||||
}
|
||||
|
||||
// FILE: dependency.kt
|
||||
package dependency
|
||||
|
||||
object Bar {
|
||||
val property: Int = 10
|
||||
fun function() {}
|
||||
fun callable() {}
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
// FILE: main.kt
|
||||
package test
|
||||
|
||||
import dependency.Bar.extFun
|
||||
|
||||
fun usage() {
|
||||
with(10) {
|
||||
extFun()
|
||||
}
|
||||
}
|
||||
|
||||
// FILE: dependency.kt
|
||||
package dependency
|
||||
|
||||
object Bar {
|
||||
fun Int.extFun() {}
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
// FILE: main.kt
|
||||
package test
|
||||
|
||||
import dependency.Bar
|
||||
import dependency.extFun
|
||||
import dependency.extVal
|
||||
import dependency.extCallable
|
||||
|
||||
fun usage() {
|
||||
Bar.extFun()
|
||||
|
||||
Bar.extVal
|
||||
|
||||
val ref = Bar::extCallable
|
||||
}
|
||||
|
||||
// FILE: dependency.kt
|
||||
package dependency
|
||||
|
||||
object Bar
|
||||
|
||||
fun Bar.extFun() {}
|
||||
|
||||
val Bar.extVal: Int get() = 10
|
||||
|
||||
fun Bar.extCallable() {}
|
||||
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
// FILE: main.kt
|
||||
import dependency.Bar.property
|
||||
import dependency.Bar.function
|
||||
import dependency.Bar.callable
|
||||
|
||||
fun test() {
|
||||
property
|
||||
function()
|
||||
::callable
|
||||
}
|
||||
|
||||
// FILE: dependency.kt
|
||||
package dependency
|
||||
|
||||
object Bar {
|
||||
val property: Int = 10
|
||||
fun function() {}
|
||||
fun callable() {}
|
||||
}
|
||||
Reference in New Issue
Block a user