mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Fix #3464
This commit is contained in:
@@ -2023,6 +2023,7 @@ gb_internal bool check_builtin_procedure(CheckerContext *c, Operand *operand, As
|
|||||||
|
|
||||||
Selection sel = lookup_field(type, field_name, false);
|
Selection sel = lookup_field(type, field_name, false);
|
||||||
if (sel.entity == nullptr) {
|
if (sel.entity == nullptr) {
|
||||||
|
ERROR_BLOCK();
|
||||||
gbString type_str = type_to_string_shorthand(type);
|
gbString type_str = type_to_string_shorthand(type);
|
||||||
error(ce->args[0],
|
error(ce->args[0],
|
||||||
"'%s' has no field named '%.*s'", type_str, LIT(field_name));
|
"'%s' has no field named '%.*s'", type_str, LIT(field_name));
|
||||||
@@ -2096,6 +2097,7 @@ gb_internal bool check_builtin_procedure(CheckerContext *c, Operand *operand, As
|
|||||||
|
|
||||||
Selection sel = lookup_field(type, field_name, false);
|
Selection sel = lookup_field(type, field_name, false);
|
||||||
if (sel.entity == nullptr) {
|
if (sel.entity == nullptr) {
|
||||||
|
ERROR_BLOCK();
|
||||||
gbString type_str = type_to_string_shorthand(type);
|
gbString type_str = type_to_string_shorthand(type);
|
||||||
error(ce->args[0],
|
error(ce->args[0],
|
||||||
"'%s' has no field named '%.*s'", type_str, LIT(field_name));
|
"'%s' has no field named '%.*s'", type_str, LIT(field_name));
|
||||||
@@ -5837,6 +5839,7 @@ gb_internal bool check_builtin_procedure(CheckerContext *c, Operand *operand, As
|
|||||||
|
|
||||||
Selection sel = lookup_field(type, field_name, false);
|
Selection sel = lookup_field(type, field_name, false);
|
||||||
if (sel.entity == nullptr) {
|
if (sel.entity == nullptr) {
|
||||||
|
ERROR_BLOCK();
|
||||||
gbString type_str = type_to_string(bt);
|
gbString type_str = type_to_string(bt);
|
||||||
error(ce->args[0],
|
error(ce->args[0],
|
||||||
"'%s' has no field named '%.*s'", type_str, LIT(field_name));
|
"'%s' has no field named '%.*s'", type_str, LIT(field_name));
|
||||||
|
|||||||
Reference in New Issue
Block a user