Extra check for type_info cycle checking

This commit is contained in:
gingerBill
2018-01-28 09:51:52 +00:00
parent f661ae9d09
commit 83d90f1463
3 changed files with 31 additions and 9 deletions
+4
View File
@@ -1671,6 +1671,10 @@ bool check_procedure_type(Checker *c, Type *type, AstNode *proc_type_node, Array
c->context.polymorphic_scope = c->context.scope;
}
CheckerContext prev = c->context;
defer (c->context = prev);
c->context.curr_proc_sig = type;
bool variadic = false;
isize variadic_index = -1;
bool success = true;