aboutsummaryrefslogtreecommitdiff
path: root/src/check_stmt.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2019-05-04 14:01:04 +0100
committergingerBill <bill@gingerbill.org>2019-05-04 14:01:04 +0100
commitea1690b7a128e435b86e332d0742150cb9db02b0 (patch)
tree6a86e04df0cc840cd9e0eda980b4712eb30adfa8 /src/check_stmt.cpp
parenta5ff983266f0a5e0717fcffb0cd1d3449b68b3a7 (diff)
Improve type inference for variadic parameters
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 2ef0a6e56..9949e0bb7 100644
--- a/src/check_stmt.cpp
+++ b/src/check_stmt.cpp
@@ -1247,7 +1247,7 @@ void check_stmt_internal(CheckerContext *ctx, Ast *node, u32 flags) {
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);
+ check_unpack_arguments(ctx, result_entities, result_count, &operands, rs->results, true, false);
if (result_count == 0 && rs->results.count > 0) {
error(rs->results[0], "No return values expected");