Skip to content

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

@atyrin

Description

@atyrin
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugtopic: K2Issues / PRs that are related to the K2 migration. See #2888

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions