From aaa9780a3b5a1c78b6f5e0eb1c46405ee044b750 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Tue, 25 Aug 2015 17:47:34 +0800 Subject: Rename tagged_enum to tagged_union --- src/types.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/types.hpp') diff --git a/src/types.hpp b/src/types.hpp index 9259fce8..17d01bb3 100644 --- a/src/types.hpp +++ b/src/types.hpp @@ -7,6 +7,7 @@ #include "coretypes.hpp" #include "ast/path.hpp" #include +#include namespace AST { class ExprNode; @@ -55,7 +56,7 @@ struct Type_Function: SERIALISABLE_PROTOTYPES(); }; -TAGGED_ENUM(TypeData, None, +TAGGED_UNION(TypeData, None, (None, ()), (Any, ()), (Unit, ()), -- cgit v1.2.3