Skip to content

Support nested typealias Kotlin language feature#2764

Merged
hfmehmed merged 4 commits into
google:mainfrom
hfmehmed:nested-typealias-support
Feb 6, 2026
Merged

Support nested typealias Kotlin language feature#2764
hfmehmed merged 4 commits into
google:mainfrom
hfmehmed:nested-typealias-support

Conversation

@hfmehmed

@hfmehmed hfmehmed commented Jan 31, 2026

Copy link
Copy Markdown
Collaborator

Fixes #2588

@hfmehmed hfmehmed force-pushed the nested-typealias-support branch from 6db7c5d to 4410614 Compare January 31, 2026 20:13
@hfmehmed hfmehmed requested a review from ting-yuan February 3, 2026 10:03
@ting-yuan ting-yuan requested a review from jaschdoc February 4, 2026 20:56
@hfmehmed hfmehmed force-pushed the nested-typealias-support branch 3 times, most recently from 7f579b9 to 9f157f6 Compare February 5, 2026 18:40
@hfmehmed hfmehmed force-pushed the nested-typealias-support branch from 9f157f6 to 5c325f1 Compare February 6, 2026 14:22
@hfmehmed hfmehmed force-pushed the nested-typealias-support branch from 5c325f1 to 3d37aa4 Compare February 6, 2026 14:24

@jaschdoc jaschdoc left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we also gracefully handle the test from the youtrack issue where it introduces a top-level typealias?

class C {
    typealias NestedAlias = String
}

typealias Top = C.NestedAlias

val useOfAlias: C.NestedAlias = ""
val useOfAliasTop: Top = ""

@hfmehmed hfmehmed merged commit c6658c7 into google:main Feb 6, 2026
3 checks passed
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.

Build fails when project contains at least one nested typealias

2 participants