Skip to content

Support JET@0.12 in tests - #993

Merged
devmotion merged 6 commits into
masterfrom
dmw/jet_0-11
Jul 29, 2026
Merged

Support JET@0.12 in tests#993
devmotion merged 6 commits into
masterfrom
dmw/jet_0-11

Conversation

@devmotion

@devmotion devmotion commented Jan 11, 2026

Copy link
Copy Markdown
Member

Supersedes #980. Supersedes #1005.

Closes #980. Closes #1005.

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
@devmotion devmotion changed the title Support JET@0.11 in tests Support JET@0.12 in tests Jul 29, 2026
Comment thread test/jet.jl

# Default error analysis for common problem fails since JET errors on interface definitions
# Default error analysis
# Note: This analysis is not enough strict to guarantee that there are no runtime errors!

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
# Note: This analysis is not enough strict to guarantee that there are no runtime errors!
# Note: This analysis is not strict enough to guarantee that there are no runtime errors!

@devmotion
devmotion merged commit 58933b2 into master Jul 29, 2026
10 checks passed
@devmotion
devmotion deleted the dmw/jet_0-11 branch July 29, 2026 10:25
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