[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:
committed by
Space Team
parent
0add17d9da
commit
ef484c7518
+16
@@ -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() {}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in bar.A.Companion) fun toName(): kotlin.String
|
||||
Reference in New Issue
Block a user