KT-64051 [AA] Fix resolve of KDoc references to a typealias by full name

This commit is contained in:
Vadim.Mishenev
2024-03-11 21:38:09 +00:00
committed by Space Team
parent 8b7ca9527a
commit df1d44b15f
16 changed files with 203 additions and 1 deletions
@@ -0,0 +1,7 @@
typealias I = String
/**
* [I.<caret_1>length] is unresolved
* [String.<caret_2>length] is resolved
*/
fun usage() {}
@@ -0,0 +1,5 @@
<caret_1> resolved to:
Nothing (Unresolved reference)
<caret_2> resolved to:
0: (in kotlin.String) open val length: kotlin.Int
@@ -0,0 +1,10 @@
// FILE: a.kt
/**
* [b.B<caret>B]
*/
fun x() {}
// FILE: b.kt
package b
typealias BB = Int
@@ -0,0 +1,2 @@
Resolved to:
0: (in b) typealias BB = kotlin.Int
@@ -0,0 +1,12 @@
// FILE: a.kt
import b.BB
/**
* [B<caret>B]
*/
fun x() {}
// FILE: b.kt
package b
typealias BB = Int
@@ -0,0 +1,2 @@
Resolved to:
0: (in b) typealias BB = kotlin.Int
@@ -0,0 +1,4 @@
/**
* [kotlin.collections.A<caret>rrayList]
*/
fun x() {}
@@ -0,0 +1,2 @@
Resolved to:
0: (in kotlin.collections) typealias ArrayList<E> = java.util.ArrayList<E>
@@ -0,0 +1,6 @@
import kotlin.collections.ArrayList
/**
* [A<caret>rrayList]
*/
fun x() {}
@@ -0,0 +1,2 @@
Resolved to:
0: (in kotlin.collections) typealias ArrayList<E> = java.util.ArrayList<E>