Skip to content

jextract: Initial typealias handling#714

Merged
ktoso merged 1 commit intoswiftlang:mainfrom
ktoso:wip-typealias-initial
Apr 20, 2026
Merged

jextract: Initial typealias handling#714
ktoso merged 1 commit intoswiftlang:mainfrom
ktoso:wip-typealias-initial

Conversation

@ktoso
Copy link
Copy Markdown
Collaborator

@ktoso ktoso commented Apr 20, 2026

resolves #338

We handle type aliases by resolving them to the actual nominal; This is unlike the "specialization" with typealiases where we actually form a new type when the left side has no generics, but the right side binds some.

This is usually what we want, the typealias still points to the same type in the generated Java.

We could go more fancy and try to record "it was a typealias" in docs etc, but we don't for now.

@ktoso ktoso force-pushed the wip-typealias-initial branch from 8755eb8 to 7cc5bc9 Compare April 20, 2026 11:19
@ktoso ktoso merged commit cffb411 into swiftlang:main Apr 20, 2026
64 checks passed
@ktoso ktoso deleted the wip-typealias-initial branch April 20, 2026 11:57
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.

[JExtract] Support typealias

1 participant