Skip to content

fix(mage): il/type's short arities reach the full one - #170

Merged
skydread1 merged 2 commits into
developfrom
fix/mage-type-short-arities
Sep 2, 2026
Merged

fix(mage): il/type's short arities reach the full one#170
skydread1 merged 2 commits into
developfrom
fix/mage-type-short-arities

Conversation

@skydread1

Copy link
Copy Markdown
Member

Closes #143

  • The 5-arity of il/type called type with 6 arguments and the next arity takes 7, so every arity below the 7-arity threw ArityException. It now passes the missing custom-attributes as [], the way method does directly below it.
  • mage/README.md's Quick Example goes back to the short form, replacing the paragraph that documented the breakage.
  • New magic.test.mage checks each short arity against the full one. It is mage's first test namespace, so it is registered in both lists in magic-compiler/test.clj.

The 5-arity called type with 6 arguments and the next arity takes 7, so
every arity below the 7-arity threw ArityException. It now passes the
missing custom-attributes as [], the way method does directly below it.

The README's Quick Example goes back to the short form, and a new
magic.test.mage checks each arity against the full one.
@skydread1 skydread1 self-assigned this Sep 2, 2026
@skydread1
skydread1 merged commit 21be321 into develop Sep 2, 2026
1 check passed
@skydread1
skydread1 deleted the fix/mage-type-short-arities branch September 2, 2026 09:42
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.

mage.core/type throws ArityException on every arity but the 7-arity

1 participant