[AA] Fix KDoc reference resolution of non-imported companion object members

- Similar to the fix for KTIJ-25995, the name interpretation collector
  needs to consider the companion object's member scope as well.

^KTIJ-25995
This commit is contained in:
Marco Pennekamp
2023-10-10 19:02:32 +02:00
committed by Space Team
parent 0add17d9da
commit ef484c7518
7 changed files with 43 additions and 1 deletions
@@ -0,0 +1,16 @@
// FILE: A.kt
package bar
class A {
companion object {
fun toName(): String = ""
}
}
// FILE: main.kt
package baz
/**
* [bar.A.<caret>toName.length]
*/
fun foo() {}
@@ -0,0 +1,2 @@
Resolved to:
0: (in bar.A.Companion) fun toName(): kotlin.String