Skip to content

kotlin-as-java-plugin not hoisting normal @JvmStatic properties #4281

@Seggan

Description

@Seggan

For the code

import kotlin.properties.Delegates

class Foo {
    companion object {
        @JvmStatic
        var bar: String by Delegates.notNull()
    }
}

Despite bar being @JvmStatic, the generated docs do not hoist it up to static level, but keep it in the companion:

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugplugin: kotlin-as-javaAn issue/PR related to Dokka's kotlin-as-java plugin

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions