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] Incorrect override modifier for a method that inherited as is #3677

Closed
atyrin opened this issue Jul 5, 2024 · 0 comments · Fixed by #3696
Closed

[K2] Incorrect override modifier for a method that inherited as is #3677

atyrin opened this issue Jul 5, 2024 · 0 comments · Fixed by #3696
Labels
bug topic: K2 Issues / PRs that are related to the K2 migration. See #2888

Comments

@atyrin
Copy link
Contributor

atyrin commented Jul 5, 2024

open class Job<T> {
    open fun do1() {}
    open fun do2(generation: T): IPerson<T> {
        return GeneralPersonImplementation(1, "Scott", generation)
    }

    /**
     * Job do3
     */
    open fun do3() {}
}

class GoodJob : Job<Int>() {
    /**
     * GoodJob do3
     */
    override fun do3() {}
}

The problem at do2() method.

In K1 it doesn't have a override modifier
image


In K1 it has

image

Probably it relates to type specification.

Installation

  • Dokka version: 2.0.0
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

Successfully merging a pull request may close this issue.

1 participant