Skip to content

Support Kotlin nested typealiases #4015

Open
@atyrin

Description

https://github.com/Kotlin/KEEP/blob/context-parameters/proposals/type-aliases.md#nested-type-aliases
https://youtrack.jetbrains.com/issue/KT-45285

Currently, Dokka 2.0.0 ignores those declarations in moth K1/K2 modes.

class BasicTAContainer {
    /**
     * TA has an annotation Deprecated with message
     */
    @Deprecated (message = "test")
    typealias AliasToStringWithDeprecatedAnnotation = String

    class Nested
    /**
     * Alias to [Nested]
     */
    typealias AliasToNested = Nested

    inner class Inner
    typealias AliasToInner = Inner

    object Object
    typealias AliasToObject = Object

    companion object Companion
    typealias AliasToCompanion = Companion

    typealias AliasToFunctionalType = (Int) -> Boolean
    typealias AliasToFunctionalTypeWithGeneric<T> = (T) -> Boolean
}
Image

Metadata

Assignees

No one assigned

    Labels

    enhancementAn issue for a feature or an overall improvementlanguage: KotlinIssue/PR related to the Kotlin language feature/analysis/docs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions