commit 7a1cde7206263c8bb3265c225ed4213d1b7bdb58 (tree)
parent e491b2f5a7af5bff98cf8fb7ce8ce8ab27dfb9bc
Author: LemonBoy <thatlemon@gmail.com>
Date: Sun, 19 Jan 2020 10:06:48 +0100
Fix wrong error code being returned in enum analisys
Fixes the assertion failure seen in #4233
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/analyze.cpp b/src/analyze.cpp
@@ -2605,7 +2605,7 @@ static Error resolve_enum_zero_bits(CodeGen *g, ZigType *enum_type) {
buf_ptr(&wanted_tag_int_type->name)));
add_error_note(g, msg, decl_node->data.container_decl.init_arg_expr,
buf_sprintf("any integral type of size 8, 16, 32, 64 or 128 bit is valid"));
- return ErrorNone;
+ return ErrorSemanticAnalyzeFail;
}
}
tag_int_type = wanted_tag_int_type;