Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Kotlin nested typealiases #4015

Open
atyrin opened this issue Jan 31, 2025 · 0 comments
Open

Support Kotlin nested typealiases #4015

atyrin opened this issue Jan 31, 2025 · 0 comments
Labels
enhancement An issue for a feature or an overall improvement language: Kotlin Issue/PR related to the Kotlin language feature/analysis/docs

Comments

@atyrin
Copy link
Contributor

atyrin commented Jan 31, 2025

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
@atyrin atyrin added enhancement An issue for a feature or an overall improvement language: Kotlin Issue/PR related to the Kotlin language feature/analysis/docs labels Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An issue for a feature or an overall improvement language: Kotlin Issue/PR related to the Kotlin language feature/analysis/docs
Projects
None yet
Development

No branches or pull requests

1 participant