mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-10 08:31:29 +00:00
Receiver of a function call '<receiver>.foo()' (where receiver is a class/object/alias name) might be specified incorrectly - corresponding [companion] object might not be declared. Before this commit '<receiver>' was considered to be undefined (null). As a consequence, import suggestion included all 'foo()' functions from the search scope. Now as a value of '<receiver>' we set class/object/alias itself resulting in an empty import suggestion list. See org/jetbrains/kotlin/idea/util/CallType.kt:307 (#extractReceiverTypeFrom(descriptor: ClassDescriptor)).