Skip to content

Commit

Permalink
[DEBUG] debug deduction type
Browse files Browse the repository at this point in the history
  • Loading branch information
miRoox committed Mar 23, 2024
1 parent 1a73a43 commit f332d46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/macro.jl
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ end
function deducefieldtypes!(fields::Vector{>:FieldInfo})
for field in fields
thistype = NamedTuple{tuple(map(field -> field.name, fields)...), Tuple{map(field -> field.type, fields)...}}
fieldconstype = deducetype(field.tfunc, thistype)
fieldconstype = @show(deducetype(field.tfunc, thistype))
if fieldconstype !== Union{}
field.constype = fieldconstype
if hasmethod(constructtype2, Tuple{Type{field.constype}})
Expand Down

0 comments on commit f332d46

Please sign in to comment.