diff options
| author | gingerBill <bill@gingerbill.org> | 2025-05-24 14:18:16 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2025-05-24 14:18:16 +0100 |
| commit | 594f1b30b4a0eadba24a712963da7bd3fc87a8eb (patch) | |
| tree | 105611cad34fec03bcd1172a3543451184d96f27 /src/check_expr.cpp | |
| parent | 84b140f963126391faba0a5e873f119803d80c3c (diff) | |
Add `Suggestion: 'context = runtime.default_context()'`
Diffstat (limited to 'src/check_expr.cpp')
| -rw-r--r-- | src/check_expr.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp index 95c898adf..60a4d3a98 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -8076,7 +8076,9 @@ gb_internal ExprKind check_call_expr(CheckerContext *c, Operand *operand, Ast *c if (pt->kind == Type_Proc && pt->Proc.calling_convention == ProcCC_Odin) { if ((c->scope->flags & ScopeFlag_ContextDefined) == 0) { + ERROR_BLOCK(); error(call, "'context' has not been defined within this scope, but is required for this procedure call"); + error_line("\tSuggestion: 'context = runtime.default_context()'"); } } |