gingerBill %!s(int64=2) %!d(string=hai) anos
pai
achega
47023b2e6c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/check_builtin.cpp

+ 1 - 1
src/check_builtin.cpp

@@ -2120,7 +2120,7 @@ gb_internal bool check_builtin_procedure(CheckerContext *c, Operand *operand, As
 			return false;
 		}
 		Type *t = o.type;
-		if (t == nullptr || t == t_invalid || is_type_asm_proc(o.type) || is_type_polymorphic(operand->type)) {
+		if (t == nullptr || t == t_invalid || is_type_asm_proc(t) || is_type_polymorphic(t)) {
 			error(ce->args[0], "Invalid argument for '%.*s'", LIT(builtin_name));
 			return false;
 		}