Skip to content

Conversation

@odow
Copy link
Member

@odow odow commented Dec 12, 2025

We can't dispatch on keyword types, so we need to implement a run-time dispatch.

Closes #4096

@codecov
Copy link

codecov bot commented Dec 13, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.83%. Comparing base (b8b5dd0) to head (4416c8f).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4097   +/-   ##
=======================================
  Coverage   99.83%   99.83%           
=======================================
  Files          43       43           
  Lines        5907     5910    +3     
=======================================
+ Hits         5897     5900    +3     
  Misses         10       10           

☔ View full report in Codecov by Sentry.
📢 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.


function test_init_issue_4096()
x = Containers.DenseAxisArray(Any[1, 2, 3], Int[1, 2, 3])
@test sum(x) == 6
Copy link
Member

Choose a reason for hiding this comment

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

Can you add a test with @allocated ... == 0 to check that the dispatch is done a compile time ? It think it is still able to do this if-else at compile time

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, but this is a bug fix. Even if it allocated we should merge

@odow odow merged commit 893d3dd into master Dec 14, 2025
10 of 11 checks passed
@odow odow deleted the od/fix-4096 branch December 14, 2025 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

MethodError: no method matching zero(::Type{Any})

3 participants