aboutsummaryrefslogtreecommitdiff
path: root/src/check_type.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-02-26 15:29:10 +0000
committergingerBill <bill@gingerbill.org>2021-02-26 15:29:10 +0000
commit54194af71c1315ff3732d813a5936d9b0acd13ba (patch)
treebba8edea26fe772f8175fb2f740614ad26386f19 /src/check_type.cpp
parent575c7ff031f67ec4c479fa1cd6e22491e2b7a79e (diff)
Fix patch (yeah... I know)
Diffstat (limited to 'src/check_type.cpp')
-rw-r--r--src/check_type.cpp6
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
}
}