Skip to content

Commit

Permalink
Correct code for higher order ∂☆new
Browse files Browse the repository at this point in the history
  • Loading branch information
oxinabox committed Jan 23, 2024
1 parent d4e75ab commit c5c9ef0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stage1/recurse_fwd.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c5c9ef0

Please sign in to comment.