Skip to content

Commit 18c4e1a

Browse files
authored
Disable eltype inference test on v1.10+ (#321)
* Disable eltype inference test on v1.10+ * @test_broken on recent versions * Fix missing assignment
1 parent 427faaf commit 18c4e1a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/ChebyshevTest.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,12 @@ include("testutils.jl")
324324
@test f1 == f2
325325
@test D1 * f1 == D2 * f2
326326

327-
@test (@inferred (D1 -> eltype(D1 + D1))(D1)) == eltype(D1)
327+
if VERSION < v"1.10-"
328+
ElT = @inferred (D1 -> eltype(D1 + D1))(D1)
329+
@test ElT == eltype(D1)
330+
else
331+
@test_broken @inferred((D1 -> eltype(D1 + D1))(D1)) == eltype(D1)
332+
end
328333
end
329334

330335
@testset "space promotion" begin

0 commit comments

Comments
 (0)