Skip to content

Use upcoming TypeEgal dispatch keys for type callees#871

Merged
maleadt merged 2 commits into
mainfrom
tb/typeegal-dispatch-keys
Jul 10, 2026
Merged

Use upcoming TypeEgal dispatch keys for type callees#871
maleadt merged 2 commits into
mainfrom
tb/typeegal-dispatch-keys

Conversation

@maleadt

@maleadt maleadt commented Jul 10, 2026

Copy link
Copy Markdown
Member

Rebase and fix of #865

Keno and others added 2 commits July 10, 2026 18:16
The Base PR JuliaLang/julia#62001 is expected to spell exact closed type-object dispatch keys as Core.TypeEgal. When looking up method instances from a stable function type, use that upcoming dispatch spelling for closed Type{T} callee keys so constructor calls such as Memory{Int}(undef, n) remain compatible with Base.isdispatchtuple.

AI disclosure: This commit was prepared with assistance from generative AI. The resulting PR should be checked carefully by a maintainer before merging.

Co-authored-by: OpenAI Codex <codex@openai.com>
After JuliaLang/julia#62001, type-valued arguments (not just callees)
specialize on Core.TypeEgal keys, and Type{T} elements anywhere in the
signature fail Base.isdispatchtuple. Normalize all signature elements
instead of only the function type.

Also make the test compatible with Julia 1.10 by constructing a Vector
instead of a Memory, and cover the argument position.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@codecov

codecov Bot commented Jul 10, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 81.81818% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.39%. Comparing base (6e70209) to head (93d7009).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/jlgen.jl 81.81% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #871      +/-   ##
==========================================
- Coverage   81.40%   81.39%   -0.02%     
==========================================
  Files          25       25              
  Lines        4755     4763       +8     
==========================================
+ Hits         3871     3877       +6     
- Misses        884      886       +2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@maleadt maleadt merged commit 1baffbb into main Jul 10, 2026
37 checks passed
@maleadt maleadt deleted the tb/typeegal-dispatch-keys branch July 10, 2026 19:10
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