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

Functional supertype is rendered as a non-existing type name #4028

Open
fzhinkin opened this issue Feb 11, 2025 · 0 comments
Open

Functional supertype is rendered as a non-existing type name #4028

fzhinkin opened this issue Feb 11, 2025 · 0 comments
Labels

Comments

@fzhinkin
Copy link

Describe the bug
If a classifier extends a functional type, rendered documentation uses FunctionX as a super type name. However, such types do not exists (the closes thing we have is kotlin.jvm.functions.Function<N>) and the link from such a supertype leads to a non-existing page.

Expected behaviour
A function supertype should be rendered as a functional type, the same way functional parameters are rendered.

Screenshots
Check https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.reflect/-k-property0/ for an example.
The interface is defined as public expect interface KProperty0<out V> : KProperty<V>, () -> V, but rendered as:
Image

And the Function0<V> link leads nowhere.

Instead, I would expect something like:
Image

Installation

  • Dokka version: 2.0.0
@fzhinkin fzhinkin added the bug label Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant