aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-08-27 14:42:19 +0100
committerGinger Bill <bill@gingerbill.org>2017-08-27 14:42:19 +0100
commit6707c8750e951ed6533ab3d4240314cf0bba7147 (patch)
tree81c3da56ac6f26fd5e51beb8e0433a5c0fbf563f /src/check_expr.cpp
parente5502c13eef07b3cef9947c47b133555e33b8d85 (diff)
Import cycle checking
Diffstat (limited to 'src/check_expr.cpp')
-rw-r--r--src/check_expr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp
index ded85abb8..ebc7679d2 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -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));