Open
Description
opened on Nov 27, 2024
evalpoly(x, ())
should either return zero(x)
or give a helpful error message. Currently it
julia> evalpoly(1, ())
ERROR: BoundsError: attempt to access Tuple{} at index [0]
Stacktrace:
[1] getindex(t::Tuple, i::Int64)
@ Base ./tuple.jl:31
[2] macro expansion
@ ./math.jl:95 [inlined]
[3] evalpoly(x::Int64, p::Tuple{})
@ Base.Math ./math.jl:94
[4] top-level scope
@ REPL[13]:1
Activity