From e5502c13eef07b3cef9947c47b133555e33b8d85 Mon Sep 17 00:00:00 2001 From: Ginger Bill Date: Sun, 20 Aug 2017 19:35:52 +0100 Subject: Restrict global variables to not allow tuples --- src/check_expr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/check_expr.cpp') diff --git a/src/check_expr.cpp b/src/check_expr.cpp index 99ea66450..ded85abb8 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 *fields, is_using = false; } - bool arity_ok = check_arity_match(c, vd); + bool arity_ok = check_arity_match(c, vd, false); if (vd->values.count > 0 && !allow_default_values) { error(vd->values[0], "Default values are not allowed within a %.*s", LIT(context)); @@ -5996,7 +5996,7 @@ void check_unpack_arguments(Checker *c, Entity **lhs, isize lhs_count, Arrayinfo, lhs[tuple_index]); if (decl) c->context.decl = decl; } -- cgit v1.2.3