Skip to content

jextract/jni: initial support for variadic type#758

Open
sidepelican wants to merge 4 commits into
swiftlang:mainfrom
sidepelican:variadic_type
Open

jextract/jni: initial support for variadic type#758
sidepelican wants to merge 4 commits into
swiftlang:mainfrom
sidepelican:variadic_type

Conversation

@sidepelican
Copy link
Copy Markdown
Contributor

Currently, when a type utilizing a parameter pack is encountered, the generator produces invalid code.

enum _JNIBridge_VariadicBox<each T>: JextractedGenericTypeBridge {
        `- error: enums cannot declare a type pack
  typealias SwiftType = VariadicBox<T>

This PR adds minimal support for variadic types to ensure that the generated code no longer breaks when these types are present.

@sidepelican sidepelican requested a review from ktoso as a code owner May 19, 2026 00:26
@sidepelican
Copy link
Copy Markdown
Contributor Author

Could you please rerun the failed CI jobs? It looks like a temporary gradle issue.

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.

2 participants