Skip to content

Commit

Permalink
Print type when invoking macro
Browse files Browse the repository at this point in the history
  • Loading branch information
Tortar authored Jul 6, 2024
1 parent 0cea807 commit 01133ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/DynamicSumTypes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ macro sumtype(typedef)
print(string($type), "'.", string(v))
end
allvariants(sumt::Type{$type}) = tuple($(variants...))
$type
end)
end

Expand Down

0 comments on commit 01133ca

Please sign in to comment.