Commit 48ac9e2
Resolve the two new method ambiguities flagged by Aqua on Julia 1.11
The DataStyle x DataStyle method was ambiguous with the DataStyle x
AbstractArrayStyle{0} method because the existing DataStyle{0}
disambiguator did not cover their full type intersection: typeintersect
drops the DataLayout bound on the second style's layout type, so the
disambiguator needs an unconstrained typevar there (and the diagonal
bound on the first argument). The scalar-broadcast copyto! was ambiguous
with BlockArrays' copyto! for AbstractBlockStyle{0}, resolved with an
explicit method like the existing StaticArrayStyle{0} one.
Verified with Aqua.detect_ambiguities filtered as in test/aqua.jl:
27 -> 25 on Julia 1.11.9 (CI failed at 27 > 26) and 25 -> 24 on Julia
1.10, with exactly the two new pairs removed and none added; dispatch
behavior verified unchanged for 0-dimensional style combinations.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent ee00ebe commit 48ac9e2
3 files changed
Lines changed: 15 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
25 | 31 | | |
26 | 32 | | |
27 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
226 | | - | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
227 | 232 | | |
228 | 233 | | |
229 | 234 | | |
| |||
0 commit comments