julia> @code_warntype foo()
Variables:
d::DualNumbers.Dual{Float64}
a::Any
Body:
begin # none, line 2:
a = 0.0 # none, line 3:
d = $(Expr(:new, DualNumbers.Dual{Float64}, 1.0, 1.0)) # none, line 5:
a = a::Float64 + (Main.dualpart)(d::DualNumbers.Dual{Float64})::Any::Any # none, line 6:
return a
end::Any
global variables bad for performance etc
Fixes: