Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Support JET@0.11 in tests#993

Open
devmotion wants to merge 4 commits into
masterJuliaStats/StatsBase.jl:masterfrom
dmw/jet_0-11JuliaStats/StatsBase.jl:dmw/jet_0-11Copy head branch name to clipboard
Open

Support JET@0.11 in tests#993
devmotion wants to merge 4 commits into
masterJuliaStats/StatsBase.jl:masterfrom
dmw/jet_0-11JuliaStats/StatsBase.jl:dmw/jet_0-11Copy head branch name to clipboard

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.