Skip to content

Conversation

vmishenev
Copy link
Contributor

@vmishenev vmishenev commented Dec 4, 2023

Current Dokka (K1) does not show inherited inner classes, but they are available from code in a class/enum scope, e.g.

    enum class A {
        E;
        inner class InnerClass
    }
    A.E.InnerClass() // is valid

or

     open class B {
        inner class InnerClass
    }

    class C:B()
    
    C().InnerClass() // is valid

@vmishenev vmishenev linked an issue Dec 4, 2023 that may be closed by this pull request
@vmishenev vmishenev force-pushed the vmishenev/3363-java-nested-class-should-not-be-in-inheritor branch from 7456e07 to fbe0968 Compare December 5, 2023 21:43
@vmishenev vmishenev changed the title [K2] Add test java nested classed should not be in inheritor [K2] Do not inherit nested and inner classes Mar 27, 2024
@vmishenev vmishenev force-pushed the vmishenev/3363-java-nested-class-should-not-be-in-inheritor branch from ec1a204 to 689dc40 Compare March 27, 2024 21:18
@vmishenev vmishenev marked this pull request as ready for review March 27, 2024 21:18
@vmishenev vmishenev merged commit cf485f3 into master Apr 2, 2024
@vmishenev vmishenev deleted the vmishenev/3363-java-nested-class-should-not-be-in-inheritor branch April 2, 2024 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[K2] Java nested classed are shown in inheritors
3 participants