Skip to content

Commit f6123ee

Browse files
authored
fix CI on 1.5 (#585)
1 parent 4f4d5f0 commit f6123ee

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/projection.jl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,11 @@ struct NoSuperType end
149149

150150
@testset "Base: Tuple" begin
151151
pt1 = ProjectTo((1.0,))
152-
@test @inferred(pt1((1 + im,))) == Tangent{Tuple{Float64}}(1.0,)
153-
@test @inferred(pt1(pt1((1,)))) == pt1(pt1((1,))) # accepts correct Tangent
154-
@test @inferred(pt1(Tangent{Any}(1))) == pt1((1,)) # accepts Tangent{Any}
152+
if VERSION >= v"1.6"
153+
@test @inferred(pt1((1 + im,))) == Tangent{Tuple{Float64}}(1.0)
154+
@test @inferred(pt1(pt1((1,)))) == pt1(pt1((1,))) # accepts correct Tangent
155+
@test @inferred(pt1(Tangent{Any}(1))) == pt1((1,)) # accepts Tangent{Any}
156+
end
155157
@test pt1([1,]) == Tangent{Tuple{Float64}}(1.0,) # accepts Vector
156158
@test @inferred(pt1(NoTangent())) === NoTangent()
157159
@test @inferred(pt1(ZeroTangent())) === ZeroTangent()

0 commit comments

Comments
 (0)