Skip to content

Commit

Permalink
stash
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Jul 13, 2024
1 parent a1ab54a commit 03f3865
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/Reactant.jl
Original file line number Diff line number Diff line change
Expand Up @@ -427,15 +427,23 @@ end
subT = fieldtype(T, f)
subT2 = fieldtype(TT2, f)
subTT = traced_type(subT, seen, Val(mode))
legal &= subT2 == subTT
if subT2 != subTT
@show "illegal subs", subT2, subTT
legal = false
break
end
end
if legal
return TT2
end
else
@show "non equal fields", fieldcount(T), fieldcount(TT2)
end

name = Symbol[]

@show "unconvertable type", T, TT2

return NamedTuple{fieldnames(T),Tuple{subTys...}}
end

Expand All @@ -452,6 +460,7 @@ end
@assert Base.isconcretetype(RT)
nf = fieldcount(RT)

@show TT, TT <: NamedTuple
if TT <: NamedTuple
changed = false
subs = []
Expand Down

0 comments on commit 03f3865

Please sign in to comment.