Kotlin / dokka

API documentation engine for Kotlin
https://kotl.in/dokka
Apache License 2.0
3.45k stars 412 forks source link

[K2] Unresolved KDoc link to two extensions with the same name #3631

Open vmishenev opened 6 months ago

vmishenev commented 6 months ago
class C
public fun C.ensureActive() {}
/**
 * [C.ensureActive]
 */
class B
/**
 * [C.ensureActive] is unresolved in IDE K2
 */
public fun B.ensureActive() {}

image

At the same time if an extension is renamed, it is resolved image

vmishenev commented 6 months ago

One more case:

import kotlin.coroutines.*
class C
fun C.resume() = 0

/**
 * [Continuation.resume] // is unresolved
 */
fun usage() = 0

but (replaced star import )


import kotlin.coroutines.resume
class C
fun C.resume() = 0

/**
 * [Continuation.resume] // is resolved
 */
fun usage() = 0
vmishenev commented 5 months ago

It is blocked by https://youtrack.jetbrains.com/issue/KT-69047/Analysis-API-Unresolved-KDoc-reference-to-extensions-with-the-same-name