Parametric polymorphic union type

This commit is contained in:
gingerBill
2018-09-08 12:02:25 +01:00
parent 26cfc0257d
commit 3cd6ae311d
9 changed files with 317 additions and 58 deletions
+4 -3
View File
@@ -470,9 +470,10 @@ AST_KIND(_TypeBegin, "", bool) \
bool is_raw_union; \
}) \
AST_KIND(UnionType, "union type", struct { \
Token token; \
Array<Ast *> variants; \
Ast * align; \
Token token; \
Array<Ast *> variants; \
Ast *polymorphic_params; \
Ast * align; \
}) \
AST_KIND(EnumType, "enum type", struct { \
Token token; \