Files
kotlin-fork/idea/testData/quickfix/autoImports/objectMemberExtensionFunctionWithGenericImportWhenExplicitReceiverPresent.kt.after
T
Roman Golyshev c463fad3b7 KT-34000: Allow autoimport to suggest fixes in qualified expressions
- it is required to be able to autoimport extensions from objects,
not only from the top level
- use `substituteExtensionIfCallable` to handle generics for extension methods
- move finding expression receivers to the separate method, add `Receivers` value class to hold found receivers
- change `CallableDescriptor.isValidByReceiversFor` to return false
if explicit receiver is not required for the descriptor
- ^KT-34000 Fixed
2019-10-02 13:46:47 +03:00

14 lines
160 B
Plaintext
Vendored

// "Import" "true"
package p
import p.TopLevelObject1.foobar
class T
object TopLevelObject1 {
fun <A> A.foobar() {}
}
fun usage(t: T) {
t.foobar()
}