Skip to content

Support JET@0.11 in tests#993

Open
devmotion wants to merge 4 commits into
masterfrom
dmw/jet_0-11
Open

Support JET@0.11 in tests#993
devmotion wants to merge 4 commits into
masterfrom
dmw/jet_0-11

Conversation

@devmotion

@devmotion devmotion commented Jan 11, 2026

Copy link
Copy Markdown
Member

Supersedes #980.

Closes #980.

devmotion and others added 3 commits January 12, 2026 20:53
JET 0.11 re-executes a package's top-level code via Revise to extract
method signatures, which re-expands the `IrrationalConstants.@irrational`
macro. IrrationalConstants >= 0.2.6 throws at macro-expansion time when the
generated type already exists, so the re-expansion errored in the JET tests.

Wrap the definition in `@static if !isdefined(...)` so it is idempotent
under re-expansion. `@static` only macroexpands the chosen branch, so the
macro is skipped once the type exists (a runtime `if` would not help, since
both branches are macroexpanded).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@devmotion devmotion enabled auto-merge (squash) June 17, 2026 08:51
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