Skip to content

test broken with Julia master #353

@matthias314

Description

@matthias314

The test

@test reshape(Fill(2,6), big(2), :) == Fill(2, 2, 3)

fails on Julia master because the left-hand side errors (with FillArrays 1.11.0):

julia> using FillArrays

julia> reshape(Fill(2,6), big(2), :)
ERROR: TypeError: in typeassert, expected Tuple{Vararg{Int64}}, got a value of type Tuple{BigInt}
Stacktrace:
 [1] _reshape_uncolon
   @ ./reshapedarray.jl:135 [inlined]
 [2] reshape(parent::Fill{Int64, 1, Tuple{Base.OneTo{Int64}}}, dims::Tuple{BigInt, Colon})
   @ FillArrays ~/.julia/packages/FillArrays/eOEVm/src/FillArrays.jl:269
 [3] reshape(::Fill{Int64, 1, Tuple{Base.OneTo{Int64}}}, ::BigInt, ::Colon)
   @ FillArrays ~/.julia/packages/FillArrays/eOEVm/src/FillArrays.jl:265
 [4] top-level scope
   @ REPL[4]:1

It works, however, with Julia 1.10.4 and 1.11.0-beta1. I don't know if this is an issue for OffsetArrays, for FillArrays or for Julia itself. I simply note that Julia itself doesn't support BigInt arguments for reshape:

julia> reshape(1:2, big(2))
ERROR: MethodError: no method matching reshape(::UnitRange{Int64}, ::BigInt)
The function `reshape` exists, but no method is defined for this combination of argument types.

(tested with Julia 1.10.4, 1.11.0-beta1 and master).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions