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

Enum entry doesn't have extension in the list of functions #2893

Open
atyrin opened this issue Feb 27, 2023 · 1 comment
Open

Enum entry doesn't have extension in the list of functions #2893

atyrin opened this issue Feb 27, 2023 · 1 comment
Labels
bug language: Kotlin Issue/PR related to the Kotlin language feature/analysis/docs

Comments

@atyrin
Copy link
Contributor

atyrin commented Feb 27, 2023

Consider the code block

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

    TALKING {
        override fun signal() = WAITING
        fun entryOnly(){}
    };

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

/**
 * Extension method for Enum class
 */
fun EnumKotlinWithMethod.extension(){}

It will be rendered as
image

So missing the extension function.

Installation

  • Dokka version: 1.7.20/1.8.10
@atyrin atyrin added the bug label Feb 27, 2023
@vmishenev
Copy link
Member

It is related to #2778 as well.

@IgnatBeresnev IgnatBeresnev added the language: Kotlin Issue/PR related to the Kotlin language feature/analysis/docs label Mar 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug language: Kotlin Issue/PR related to the Kotlin language feature/analysis/docs
Projects
None yet
Development

No branches or pull requests

3 participants