Skip to content

Conversation

@pelekon
Copy link
Contributor

@pelekon pelekon commented Nov 22, 2025

Resolves: #352

$ensureAlive();
swiftjava_SwiftModule_MyStruct_subscript$set.call(index, newValue, this.$memorySegment());
""",
])
Copy link
Collaborator

Choose a reason for hiding this comment

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

that's the chunks which we do want to assert on, looking good, thanks!

@ktoso ktoso changed the title Subscripts support jextract (ffm, jni): Subscripts support Nov 25, 2025
@ktoso
Copy link
Collaborator

ktoso commented Nov 25, 2025

Very nice, just some nitpicks about the tests

@ktoso ktoso merged commit 8d6365c into swiftlang:main Dec 1, 2025
48 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.

[JExtract] Support subscript APIs

2 participants