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] Enum entry methods are not rendered #3336

Closed
atyrin opened this issue Nov 13, 2023 · 1 comment
Closed

[K2] Enum entry methods are not rendered #3336

atyrin opened this issue Nov 13, 2023 · 1 comment
Labels
bug topic: K2 Issues / PRs that are related to the K2 migration. See #2888

Comments

@atyrin
Copy link
Contributor

atyrin commented Nov 13, 2023

enum class EnumKotlinWithMethod {
    WAITING,

    TALKING {
        fun entryOnly() = WAITING
    };
}

In K1, the function entryOnly() is present in the function list of the entry. In K2, it missed.
But it might be by design for K2 since the function is unusable outside of the entry body.

Installation

  • Dokka version: 1.9.20

Parent: #3328

@atyrin atyrin added the bug label Nov 13, 2023
@vmishenev
Copy link
Member

Sorry, I forgot to update #3115.
Dokka K2 does not display anonymous members of entry since they are anonymous and unavailable outside of an enum entry's initializing anonymous object.
This is part of #3129

@IgnatBeresnev IgnatBeresnev added the topic: K2 Issues / PRs that are related to the K2 migration. See #2888 label Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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