From 01133cadee582f93c981d430634e91a995be4162 Mon Sep 17 00:00:00 2001 From: Adriano Meligrana <68152031+Tortar@users.noreply.github.com> Date: Sat, 6 Jul 2024 18:58:10 +0200 Subject: [PATCH] Print type when invoking macro --- src/DynamicSumTypes.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/DynamicSumTypes.jl b/src/DynamicSumTypes.jl index c1f945e..9922579 100644 --- a/src/DynamicSumTypes.jl +++ b/src/DynamicSumTypes.jl @@ -63,6 +63,7 @@ macro sumtype(typedef) print(string($type), "'.", string(v)) end allvariants(sumt::Type{$type}) = tuple($(variants...)) + $type end) end