Skip to content

Commit e1c7c7e

Browse files
authored
Correct code for higher order ∂☆new
1 parent edab1c0 commit e1c7c7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stage1/recurse_fwd.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ _construct(::Type{B}, args) where B<:Tuple = B(args)
5050
# Hack for making things that do not have public constructors constructable:
5151
@generated _construct(B::Type, args) = Expr(:splatnew, :B, :args)
5252

53-
@generated (::∂☆new{N})(B::Type) where {N} = return :(zero_bundle{order}()($(Expr(:new, :B))))
53+
@generated (::∂☆new{N})(B::Type) where {N} = return :(zero_bundle{$N}()($(Expr(:new, :B))))
5454

5555
# Sometimes we don't know whether or not we need to the ZeroBundle when doing
5656
# the transform, so this can happen - allow it for now.

0 commit comments

Comments
 (0)