Skip to content

fix: refuse invalid range bounds - #2880

Merged
zachdaniel merged 1 commit into
ash-project:mainfrom
matt-beanland:fix/invalid-bounds
Aug 19, 2026
Merged

fix: refuse invalid range bounds#2880
zachdaniel merged 1 commit into
ash-project:mainfrom
matt-beanland:fix/invalid-bounds

Conversation

@matt-beanland

@matt-beanland matt-beanland commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Contributor checklist

  • I accept the AI Policy, or AI was not used in the creation of this PR.
  • Bug fixes include regression tests
  • Chores
  • Documentation changes
  • Features include unit/acceptance tests
  • Refactoring
  • Update dependencies

Closes #2879

Summary

On cast of a range an unrecognized bounds atom was not being refused and resulting in a different range, [1, 9] became [2, 9).

Similarly apply_constraints/2' canonicalizes without going through extract/1, and a filter literal reaches dump_to_native/2` without being cast.

All 3 paths fixed in one commit.

@zachdaniel
zachdaniel merged commit 7de3d9e into ash-project:main Aug 19, 2026
51 checks passed
@zachdaniel

Copy link
Copy Markdown
Contributor

🚀 Thank you for your contribution! 🚀

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.

Ash.Type.Range casts an invalid bounds atom to a different range

2 participants