Fix using determination order

This commit is contained in:
gingerBill
2018-03-03 20:07:12 +00:00
parent 9274f29ca9
commit 41b6d215bb
6 changed files with 19 additions and 29 deletions

View File

@@ -1347,7 +1347,7 @@ void init_preload(Checker *c) {
GB_ASSERT(tis->fields.count == 3);
Entity *type_info_variant = tis->fields_in_src_order[2];
Entity *type_info_variant = tis->fields[2];
Type *tiv_type = type_info_variant->type;
GB_ASSERT(is_type_union(tiv_type));