aboutsummaryrefslogtreecommitdiff
path: root/src/check_stmt.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-05-22 12:37:26 +0100
committergingerBill <bill@gingerbill.org>2023-05-22 12:37:26 +0100
commitd5a8f2298e68c64f2f9e2fe5d0c6ab528db627a8 (patch)
treef1348990295941c8d1b2de9e6b8376229bb52d74 /src/check_stmt.cpp
parent18c5a536856f9296610a3180a6356eeab61f5521 (diff)
Restrict `---` to variable declarations only
Diffstat (limited to 'src/check_stmt.cpp')
-rw-r--r--src/check_stmt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp
index 1e3b35c21..6c69ad59f 100644
--- a/src/check_stmt.cpp
+++ b/src/check_stmt.cpp
@@ -2176,7 +2176,7 @@ gb_internal void check_return_stmt(CheckerContext *ctx, Ast *node) {
auto operands = array_make<Operand>(heap_allocator(), 0, 2*rs->results.count);
defer (array_free(&operands));
- check_unpack_arguments(ctx, result_entities, result_count, &operands, rs->results, true, false);
+ check_unpack_arguments(ctx, result_entities, result_count, &operands, rs->results, UnpackFlag_AllowOk);
if (result_count == 0 && rs->results.count > 0) {
error(rs->results[0], "No return values expected");