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] Overriden methods in enum entries are not rendered #3682

Open
atyrin opened this issue Jul 8, 2024 · 1 comment
Open

[K2] Overriden methods in enum entries are not rendered #3682

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

Comments

@atyrin
Copy link
Contributor

atyrin commented Jul 8, 2024

enum class EnumKotlinWithMethod {
    WAITING {
        override fun signal() = TALKING
    },

    TALKING {
        /**
         * Override Signal in [TALKING]
         */
        override fun signal(): EnumKotlinWithMethod {
            return entryOnly()
        }
        fun entryOnly() = WAITING
    };

    /**
     * Enum class function to override.
     * BTW its abstract
     * @return [EnumKotlinWithMethod]
     */
    abstract fun signal(): EnumKotlinWithMethod
}

For K2 the method signal on entries pages shows the method for parent EnumKotlinWithMethod and lead to the page of abstract function.

K2 page:
image

Note the description and signature of the signal.


In K1 it looked as expacted:
image


Installation

  • Dokka version: 2.0.0
@atyrin atyrin added bug topic: K2 Issues / PRs that are related to the K2 migration. See #2888 labels Jul 8, 2024
@vmishenev
Copy link
Member

This is expected since the behavior of enum entries has been changed in K2 #3129

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

2 participants