Skip to content

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

Open
@fzhinkin

Description

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

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions