We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61df653 commit 1ee4550Copy full SHA for 1ee4550
test/math.jl
@@ -716,6 +716,8 @@ end
716
@test evalpoly(x, [p1, p2, p3]) == evpm
717
end
718
@test evalpoly(1.0f0, ()) === 0.0f0 # issue #56699
719
+ @test @inferred(evalpoly(1.0f0, Int[])) === 0.0f0 # issue #56699
720
+ @test_throws MethodError evalpoly(1.0f0, [])
721
@test @inferred(evalpoly(1.0f0, [2])) === 2.0f0 # type-stability
722
723
@@ -729,6 +731,8 @@ end
729
731
@test evalpoly(1+im, (2,)) == 2
730
732
@test evalpoly(1+im, [2,]) == 2
733
@test evalpoly(1.0f0+im, ()) === 0.0f0+0im # issue #56699
734
+ @test @inferred(evalpoly(1.0f0+im, Int[])) === 0.0f0+0im # issue #56699
735
736
@test @inferred(evalpoly(1.0f0+im, [2])) === 2.0f0+0im # type-stability
737
738
0 commit comments