Skip to content

Commit 59dcc28

Browse files
committed
Mark broken inference
1 parent 244b58b commit 59dcc28

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

test/test_blocksparsearrays.jl

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ using LinearAlgebra: norm
99
using MatrixAlgebraKit: svd_compact, svd_trunc
1010
using StableRNGs: StableRNG
1111
using Test: @test, @test_broken, @testset
12-
using TestExtras: @constinferred
12+
using TestExtras: @constinferred, @constinferred_broken
1313

1414
elts = (Float32, Float64, ComplexF32)
1515
arrayts = (Array, JLArray)
@@ -338,7 +338,12 @@ end
338338
Block(2, 2) => dev(δ(elt, (3, 3)) randn(elt, 3, 3)),
339339
)
340340
a = dev(blocksparse(d, (r, r)))
341-
@test @constinferred(norm(a)) norm(Array(a))
341+
if VERSION v"1.11-"
342+
@test @constinferred(norm(a)) norm(Array(a))
343+
else
344+
# Type inference fails in Julia 1.10.
345+
@test @constinferred_broken(norm(a)) norm(Array(a))
346+
end
342347

343348
r = blockrange([2 × 2, 3 × 3])
344349
d = Dict(

0 commit comments

Comments
 (0)