Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Support Kotlin nested typealiases #4015

@atyrin

Description

@atyrin

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

Metadata

Assignees

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

Relationships

None yet

Development

No branches or pull requests

Issue actions