@@ -50,13 +50,21 @@ include("TestBlockSparseArraysUtils.jl")
50
50
Matrix{Float32}
51
51
@test @constinferred (similartype_unchecked (Array{Float32}, NTuple{2 ,Base. OneTo{Int}})) ===
52
52
Matrix{Float32}
53
- @test @constinferred (similartype_unchecked (AbstractArray{Float32}, NTuple{2 ,Int})) ===
54
- Matrix{Float32}
55
- @test @constinferred (similartype_unchecked (JLArray{Float32}, NTuple{2 ,Int})) ===
56
- JLMatrix{Float32}
57
- @test @constinferred (
58
- similartype_unchecked (JLArray{Float32}, NTuple{2 ,Base. OneTo{Int}})
59
- ) === JLMatrix{Float32}
53
+ if VERSION < v " 1.11-"
54
+ # Not type stable in Julia 1.10.
55
+ @test similartype_unchecked (AbstractArray{Float32}, NTuple{2 ,Int}) === Matrix{Float32}
56
+ @test similartype_unchecked (JLArray{Float32}, NTuple{2 ,Int}) === JLMatrix{Float32}
57
+ @test similartype_unchecked (JLArray{Float32}, NTuple{2 ,Base. OneTo{Int}}) ===
58
+ JLMatrix{Float32}
59
+ else
60
+ @test @constinferred (similartype_unchecked (AbstractArray{Float32}, NTuple{2 ,Int})) ===
61
+ Matrix{Float32}
62
+ @test @constinferred (similartype_unchecked (JLArray{Float32}, NTuple{2 ,Int})) ===
63
+ JLMatrix{Float32}
64
+ @test @constinferred (
65
+ similartype_unchecked (JLArray{Float32}, NTuple{2 ,Base. OneTo{Int}})
66
+ ) === JLMatrix{Float32}
67
+ end
60
68
end
61
69
62
70
arrayts = (Array, JLArray)
0 commit comments