mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-29 17:34:34 +00:00
fix deferred procedure errors
This commit is contained in:
@@ -6206,7 +6206,7 @@ gb_internal void check_deferred_procedures(Checker *c) {
|
||||
}
|
||||
if ((src_params == nullptr && dst_params != nullptr) ||
|
||||
(src_params != nullptr && dst_params == nullptr)) {
|
||||
error(src->token, "Deferred procedure '%.*s' parameters do not match the inputs of initial procedure '%.*s'", LIT(src->token.string), LIT(dst->token.string));
|
||||
error(src->token, "Deferred procedure '%.*s' parameters do not match the inputs of initial procedure '%.*s'", LIT(dst->token.string), LIT(src->token.string));
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -6219,7 +6219,7 @@ gb_internal void check_deferred_procedures(Checker *c) {
|
||||
gbString s = type_to_string(src_params);
|
||||
gbString d = type_to_string(dst_params);
|
||||
error(src->token, "Deferred procedure '%.*s' parameters do not match the inputs of initial procedure '%.*s':\n\t(%s) =/= (%s)",
|
||||
LIT(src->token.string), LIT(dst->token.string),
|
||||
LIT(dst->token.string), LIT(src->token.string),
|
||||
s, d
|
||||
);
|
||||
gb_string_free(d);
|
||||
@@ -6236,7 +6236,7 @@ gb_internal void check_deferred_procedures(Checker *c) {
|
||||
}
|
||||
if ((src_results == nullptr && dst_params != nullptr) ||
|
||||
(src_results != nullptr && dst_params == nullptr)) {
|
||||
error(src->token, "Deferred procedure '%.*s' parameters do not match the results of initial procedure '%.*s'", LIT(src->token.string), LIT(dst->token.string));
|
||||
error(src->token, "Deferred procedure '%.*s' parameters do not match the results of initial procedure '%.*s'", LIT(dst->token.string), LIT(src->token.string));
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -6249,7 +6249,7 @@ gb_internal void check_deferred_procedures(Checker *c) {
|
||||
gbString s = type_to_string(src_results);
|
||||
gbString d = type_to_string(dst_params);
|
||||
error(src->token, "Deferred procedure '%.*s' parameters do not match the results of initial procedure '%.*s':\n\t(%s) =/= (%s)",
|
||||
LIT(src->token.string), LIT(dst->token.string),
|
||||
LIT(dst->token.string), LIT(src->token.string),
|
||||
s, d
|
||||
);
|
||||
gb_string_free(d);
|
||||
@@ -6302,7 +6302,7 @@ gb_internal void check_deferred_procedures(Checker *c) {
|
||||
gbString s = type_to_string(tsrc);
|
||||
gbString d = type_to_string(dst_params);
|
||||
error(src->token, "Deferred procedure '%.*s' parameters do not match the results of initial procedure '%.*s':\n\t(%s) =/= (%s)",
|
||||
LIT(src->token.string), LIT(dst->token.string),
|
||||
LIT(dst->token.string), LIT(src->token.string),
|
||||
s, d
|
||||
);
|
||||
gb_string_free(d);
|
||||
|
||||
Reference in New Issue
Block a user