Browse Source

Fix `quaternion` construction causing compiler crash

Previously, a construction of `quaternion(real=0, real=1, real=2,
real=3)` could crash the compiler.
Feoramund 3 months ago
parent
commit
705ae3f343
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/check_builtin.cpp

+ 1 - 0
src/check_builtin.cpp

@@ -2917,6 +2917,7 @@ gb_internal bool check_builtin_procedure(CheckerContext *c, Operand *operand, As
 
 				if (fields_set[*index]) {
 					error(field->field, "Previously assigned field: '%.*s'", LIT(name));
+					return false;
 				}
 				fields_set[*index] = style;