diff options
| author | gingerBill <bill@gingerbill.org> | 2024-05-07 11:24:21 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-05-07 11:24:21 +0100 |
| commit | 05a17048982dea73ac0c7db1e743582abf73233b (patch) | |
| tree | a75a41db4cd6dd3ca0c5c2a31cb45d2cc62ff386 /src/check_builtin.cpp | |
| parent | 1818df786dbd8595bb58719ce849350b354c60a7 (diff) | |
Fix #3464
Diffstat (limited to 'src/check_builtin.cpp')
| -rw-r--r-- | src/check_builtin.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/check_builtin.cpp b/src/check_builtin.cpp index 825fc6448..3d31ec75d 100644 --- a/src/check_builtin.cpp +++ b/src/check_builtin.cpp @@ -2023,6 +2023,7 @@ gb_internal bool check_builtin_procedure(CheckerContext *c, Operand *operand, As Selection sel = lookup_field(type, field_name, false); if (sel.entity == nullptr) { + ERROR_BLOCK(); gbString type_str = type_to_string_shorthand(type); error(ce->args[0], "'%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); if (sel.entity == nullptr) { + ERROR_BLOCK(); gbString type_str = type_to_string_shorthand(type); error(ce->args[0], "'%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); if (sel.entity == nullptr) { + ERROR_BLOCK(); gbString type_str = type_to_string(bt); error(ce->args[0], "'%s' has no field named '%.*s'", type_str, LIT(field_name)); |