diff options
| author | gingerBill <bill@gingerbill.org> | 2019-05-25 20:24:19 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2019-05-25 20:24:19 +0100 |
| commit | 458ec5922e69f105ca92d348e475693dfa252ad0 (patch) | |
| tree | 0c7db7614a6a3f9d05816e54adc03d82118f06c3 /src/check_decl.cpp | |
| parent | f5fdd031f9b763a2b6a86f2fc536735fc8d7ed5d (diff) | |
odin query
Output .json file containing information about the program
Diffstat (limited to 'src/check_decl.cpp')
| -rw-r--r-- | src/check_decl.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/check_decl.cpp b/src/check_decl.cpp index e3a1b2575..d97601444 100644 --- a/src/check_decl.cpp +++ b/src/check_decl.cpp @@ -905,6 +905,9 @@ void check_proc_group_decl(CheckerContext *ctx, Entity *pg_entity, DeclInfo *d) continue; } + begin_error_block(); + defer (end_error_block()); + ProcTypeOverloadKind kind = are_proc_types_overload_safe(p->type, q->type); switch (kind) { case ProcOverload_Identical: @@ -938,7 +941,7 @@ void check_proc_group_decl(CheckerContext *ctx, Entity *pg_entity, DeclInfo *d) } if (is_invalid) { - gb_printf_err("\tprevious procedure at %.*s(%td:%td)\n", LIT(pos.file), pos.line, pos.column); + error_line("\tprevious procedure at %.*s(%td:%td)\n", LIT(pos.file), pos.line, pos.column); q->type = t_invalid; } } |