Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KDoc links are unresolved for members of typealias #3521

Open
vmishenev opened this issue Mar 7, 2024 · 2 comments
Open

KDoc links are unresolved for members of typealias #3521

vmishenev opened this issue Mar 7, 2024 · 2 comments
Labels
kdoc-spec An issue that requires clarification from the KDoc spec's perspective question A user question, can be resolved if the question is answered/resolved

Comments

@vmishenev
Copy link
Member

vmishenev commented Mar 7, 2024

In K1 and K2:

typealias I = String
/**
 * [I.length] is unresolved
 * [String.length] is resolved
 */

Is this expected?

Use-cases:

  • A deprecation with a typealias
@vmishenev vmishenev added question A user question, can be resolved if the question is answered/resolved kdoc-spec An issue that requires clarification from the KDoc spec's perspective labels Mar 7, 2024
@qwwdfsad
Copy link
Member

qwwdfsad commented Mar 7, 2024

Working on KDoc spec is going to be tough 😅

@atyrin
Copy link
Contributor

atyrin commented Jul 8, 2024

  • cases for references via this
class ClassForTypealias{
    fun member(){}
}

typealias TypeAliasWithExtensions = ClassForTypealias

/**
 * The reference: [this.member] or [member]
 */
fun TypeAliasWithExtensions.extensionOnTACallMember() {}

Both references are unresolved in K2. In K1 the first link leads to a root package (🤔), the second is unresolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kdoc-spec An issue that requires clarification from the KDoc spec's perspective question A user question, can be resolved if the question is answered/resolved
Projects
None yet
Development

No branches or pull requests

3 participants