diff --git a/src/stage1/recurse_fwd.jl b/src/stage1/recurse_fwd.jl index 7f38b7d0..eb892cc9 100644 --- a/src/stage1/recurse_fwd.jl +++ b/src/stage1/recurse_fwd.jl @@ -50,7 +50,7 @@ _construct(::Type{B}, args) where B<:Tuple = B(args) # Hack for making things that do not have public constructors constructable: @generated _construct(B::Type, args) = Expr(:splatnew, :B, :args) -@generated (::∂☆new{N})(B::Type) where {N} = return :(zero_bundle{order}()($(Expr(:new, :B)))) +@generated (::∂☆new{N})(B::Type) where {N} = return :(zero_bundle{$N}()($(Expr(:new, :B)))) # Sometimes we don't know whether or not we need to the ZeroBundle when doing # the transform, so this can happen - allow it for now.