Skip to content

Commit

Permalink
Only test type inference on latest Julia version
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer committed Sep 21, 2023
1 parent 7f1ca48 commit e43e187
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/unittests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ expected_type_pairs = [
for (x, y) in expected_type_pairs
@eval @test base_numeric_type($x) == $y
# Make sure compiler can inline it:
@eval @inferred $y base_numeric_type($x)
if VERSION >= v"1.10"
@eval @inferred $y base_numeric_type($x)
end
end

@test base_numeric_type(1.5DynamicQuantities.u"km/s") == base_numeric_type(typeof(1.5DynamicQuantities.u"km/s"))
Expand Down

0 comments on commit e43e187

Please sign in to comment.