Skip to content

Commit b742b3e

Browse files
committed
type of type erasure in ∂☆new
1 parent 6ae4e13 commit b742b3e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/stage1/recurse_fwd.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@ function (::∂☆new{1})(B::Type, xs::AbstractTangentBundle{1}...)
2323
tangent_nt = NamedTuple{names}(tangent_tup)
2424
StructuralTangent{B}(tangent_nt)
2525
end
26-
@show typeof(the_partial)
27-
#TODO: I think we need https://github.com/JuliaDiff/Diffractor.jl/pull/236/files here
28-
return TaylorBundle{1, B}(the_primal, (the_partial,))
26+
B2 = typeof(the_primal) # HACK: if the_primal actually has types in it then we want to make sure we get DataType not Type(...)
27+
return TaylorBundle{1, B2}(the_primal, (the_partial,))
2928
end
3029

3130
function (::∂☆new{N})(B::Type, xs::AbstractTangentBundle{N}...) where {N}

0 commit comments

Comments
 (0)