Fix type aliasing comparison; Fix gb_utf8_decode

This commit is contained in:
gingerBill
2018-06-15 19:59:35 +01:00
parent e9e7ce2606
commit 5081ea1a0c
5 changed files with 28 additions and 14 deletions
+4
View File
@@ -603,6 +603,10 @@ void check_enum_type(CheckerContext *ctx, Type *enum_type, Type *named_type, Ast
enum_type->Enum.is_export = et->is_export;
if (et->is_export) {
Scope *parent = ctx->scope->parent;
if (parent->is_file) {
// NOTE(bhall): Use package scope
parent = parent->parent;
}
for_array(i, fields) {
Entity *f = fields[i];
if (f->kind != Entity_Constant) {