diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2023-02-28 12:22:45 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-28 12:22:45 +0000 |
| commit | 8ea697249683e99d45000c6456de397b7a944a60 (patch) | |
| tree | 1f5ed60d50eeb282ae4dd451dfe75fab73e32052 /src/check_expr.cpp | |
| parent | c8d3a9121bbed1cff1fee45d6ecf0fa4748f4d21 (diff) | |
| parent | 9afd9f9beae310d2a3bea98cd713b22d2f167cf9 (diff) | |
Merge pull request #2327 from odin-lang/new-temp-allocator
New default `context.temp_allocator`
Diffstat (limited to 'src/check_expr.cpp')
| -rw-r--r-- | src/check_expr.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp index 29a673980..b4836416e 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -6840,6 +6840,10 @@ gb_internal ExprKind check_call_expr(CheckerContext *c, Operand *operand, Ast *c if (operand->mode == Addressing_Builtin) { i32 id = operand->builtin_id; + Entity *e = entity_of_node(operand->expr); + if (e != nullptr && e->token.string == "expand_to_tuple") { + warning(operand->expr, "'expand_to_tuple' has been replaced with 'expand_values'"); + } if (!check_builtin_procedure(c, operand, call, id, type_hint)) { operand->mode = Addressing_Invalid; operand->type = t_invalid; |