diff options
| author | gingerBill <bill@gingerbill.org> | 2018-08-22 15:17:29 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-08-22 15:17:29 +0100 |
| commit | fe680a8b1f93b9e19cf1ef1536e19328e7389cc8 (patch) | |
| tree | 08b58ab69cdad2374f9cc989a0dad90c7ae793f1 | |
| parent | 54fe9f3eb145d171f0277a90c19ce6da09832742 (diff) | |
Fix default return values #250
| -rw-r--r-- | src/check_type.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp index 083a9e7c7..a285bc413 100644 --- a/src/check_type.cpp +++ b/src/check_type.cpp @@ -1306,12 +1306,12 @@ Type *check_get_results(CheckerContext *ctx, Scope *scope, Ast *_results) { Type *type = nullptr; if (field->type == nullptr) { - handle_parameter_value(ctx, nullptr, &type, default_value, false); + param_value = handle_parameter_value(ctx, nullptr, &type, default_value, false); } else { type = check_type(ctx, field->type); if (default_value != nullptr) { - handle_parameter_value(ctx, type, nullptr, default_value, false); + param_value = handle_parameter_value(ctx, type, nullptr, default_value, false); } } |