Commit 74f26f6
On a recent nightly (v"1.13.0-DEV.347"), `Base` has added
`AbstractOneTo` (JuliaLang/julia#56902), and in
this PR we change `SOneTo` to subtype `AbstractOneTo` when this is
available. This makes combinations of `SOneTo`, `Base.OneTo` and
`Integer`s dispatch to `Base` methods, and we don't need to disambiguate
these in this package.
Fixes #1248. After
this, `StaticArrays` only needs to define `similar` methods for `Tuple`s
of `SOneTo` as indices.
---------
Co-authored-by: Neven Sajko <4944410+nsajko@users.noreply.github.com>
Co-authored-by: Mateusz Baran <mateuszbaran89@gmail.com>
1 parent 0d68e03 commit 74f26f6
2 files changed
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
7 | | - | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
146 | | - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
147 | 152 | | |
148 | 153 | | |
149 | 154 | | |
| |||
0 commit comments