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

[K2] Unresolved declarations are resolved in KDoc #3681

Open
atyrin opened this issue Jul 8, 2024 · 2 comments
Open

[K2] Unresolved declarations are resolved in KDoc #3681

atyrin opened this issue Jul 8, 2024 · 2 comments
Labels
blocked: AA Changes required in Analysis API bug topic: K2 Issues / PRs that are related to the K2 migration. See #2888

Comments

@atyrin
Copy link
Contributor

atyrin commented Jul 8, 2024

/**
 * Resolve value: [value]
 */
fun useValue() = value

value in the function body is unresolved in IDE.
K2: value in KDoc is resolved and refers to kotlin-stdlib-2.0.0-sources.jar!/commonMain/kotlin/util/Lazy.kt:44 for IDE and to https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/ for Dokka

K1: value in kdoc is unresolved

Installation

  • Dokka version: 2.0.0
@atyrin atyrin added the bug label Jul 8, 2024
@atyrin
Copy link
Contributor Author

atyrin commented Jul 8, 2024

@atyrin atyrin added the topic: K2 Issues / PRs that are related to the K2 migration. See #2888 label Jul 8, 2024
@atyrin atyrin changed the title [K2] Unresolved declaations are resolved in KDoc [K2] Unresolved declarations are resolved in KDoc Jul 8, 2024
@vmishenev
Copy link
Member

The general case:

fun getProperty() = 0
/**
 * [property] is resolved in K2, but - not in K1
 */
fun usage() = 0

Related issue: #3586

@whyoleg whyoleg added the blocked: AA Changes required in Analysis API label Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked: AA Changes required in Analysis API bug topic: K2 Issues / PRs that are related to the K2 migration. See #2888
Projects
None yet
Development

No branches or pull requests

3 participants