diff options
| author | gingerBill <bill@gingerbill.org> | 2021-02-26 15:29:10 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-02-26 15:29:10 +0000 |
| commit | 54194af71c1315ff3732d813a5936d9b0acd13ba (patch) | |
| tree | bba8edea26fe772f8175fb2f740614ad26386f19 /src/check_type.cpp | |
| parent | 575c7ff031f67ec4c479fa1cd6e22491e2b7a79e (diff) | |
Fix patch (yeah... I know)
Diffstat (limited to 'src/check_type.cpp')
| -rw-r--r-- | src/check_type.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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 } } |