Added ErrorUnion, Union TypeInfo generation

This commit is contained in:
Alexandros Naskos
2018-04-26 19:56:34 +03:00
parent fbbbee6b72
commit 884e32d5c3
2 changed files with 127 additions and 15 deletions

View File

@@ -6426,7 +6426,7 @@ static void define_builtin_compile_vars(CodeGen *g) {
" };\n"
"\n"
" pub const ErrorUnion = struct {\n"
" error_set: &ErrorSet,\n"
" error_set: type,\n"
" payload: type,\n"
" };\n"
"\n"