Skip to content

jextract/jni: handle tuples with array elements#685

Merged
ktoso merged 3 commits intoswiftlang:mainfrom
ktoso:wip-tuple-of-arrays
Apr 8, 2026
Merged

jextract/jni: handle tuples with array elements#685
ktoso merged 3 commits intoswiftlang:mainfrom
ktoso:wip-tuple-of-arrays

Conversation

@ktoso
Copy link
Copy Markdown
Collaborator

@ktoso ktoso commented Apr 8, 2026

We'd wrongly render the array used for the tuple out parameter and the dimension of the elements would be at the end of the type, but it must be [3][][][] rather than [][][][3].

This allows returning arrays inside tuples

ktoso added 2 commits April 8, 2026 12:20
We'd wrongly render the array used for the tuple out parameter and the
dimension of the elements would be at the end of the type, but it must
be [3][][][] rather than [][][]][3].

This allows returning arrays inside tuples
generating code which assumed this was correct huh
@ktoso ktoso force-pushed the wip-tuple-of-arrays branch from 0a1919c to e2cfe98 Compare April 8, 2026 05:41
@ktoso ktoso merged commit 51ed738 into swiftlang:main Apr 8, 2026
64 checks passed
@ktoso ktoso deleted the wip-tuple-of-arrays branch April 8, 2026 08:09
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.

1 participant