Import cycle checking

This commit is contained in:
Ginger Bill
2017-08-27 14:42:19 +01:00
parent e5502c13ee
commit 6707c8750e
7 changed files with 418 additions and 251 deletions

View File

@@ -825,7 +825,7 @@ void check_struct_field_decl(Checker *c, AstNode *decl, Array<Entity *> *fields,
is_using = false;
}
bool arity_ok = check_arity_match(c, vd, false);
bool arity_ok = check_arity_match(c, vd);
if (vd->values.count > 0 && !allow_default_values) {
error(vd->values[0], "Default values are not allowed within a %.*s", LIT(context));