Skip to content

fix: array methods + typed empty arrays#22

Merged
IMisbahk merged 1 commit intomasterfrom
codex
Mar 17, 2026
Merged

fix: array methods + typed empty arrays#22
IMisbahk merged 1 commit intomasterfrom
codex

Conversation

@IMisbahk
Copy link
Collaborator

What

  • Added Array methods: .length() and .push()
  • Allowed typed empty array assignment like var xs: [int] = []
  • Added regression test src/tests/array_methods.rey

Why

Array methods should work uniformly across array types, and typed empty arrays should be usable without a placeholder initializer.

Notes

  • Runtime implements Array.length()/Array.push(); typechecker enforces push element type for typed arrays.

@IMisbahk IMisbahk merged commit 642611d into master Mar 17, 2026
1 of 2 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.

2 participants