From 54194af71c1315ff3732d813a5936d9b0acd13ba Mon Sep 17 00:00:00 2001 From: gingerBill Date: Fri, 26 Feb 2021 15:29:10 +0000 Subject: Fix patch (yeah... I know) --- src/check_type.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/check_type.cpp') diff --git a/src/check_type.cpp b/src/check_type.cpp index 604dfd420..0a3a49550 100644 --- a/src/check_type.cpp +++ b/src/check_type.cpp @@ -1682,14 +1682,14 @@ Type *check_get_params(CheckerContext *ctx, Scope *scope, Ast *_params, bool *is } } if (!ok) { - if (false) { + success = false; + #if 0 gbString got = type_to_string(op.type); gbString expected = type_to_string(type); error(op.expr, "Cannot assigned type to parameter, got type '%s', expected '%s'", got, expected); gb_string_free(expected); gb_string_free(got); - } - success = false; + #endif } } -- cgit v1.2.3