diff options
| author | gingerBill <bill@gingerbill.org> | 2019-07-29 18:33:06 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2019-07-29 18:33:06 +0100 |
| commit | e7d3001dd1ef698304d5fcda2c564350d6a25fe8 (patch) | |
| tree | 796e4d5f63cbfaaf63c16f69871931875d4a4f30 /src | |
| parent | f1631812049ae2c50b9ddb2f5c163327f15731c8 (diff) | |
Fix constant default value error #408 (typo)
Diffstat (limited to 'src')
| -rw-r--r-- | src/check_type.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp index 5b20a48fc..bcf0ed71c 100644 --- a/src/check_type.cpp +++ b/src/check_type.cpp @@ -1538,7 +1538,7 @@ Type *check_get_params(CheckerContext *ctx, Scope *scope, Ast *_params, bool *is } if (is_poly_name) { - if (type != nullptr && type_expr->kind == Ast_TypeidType) { + if (type_expr != nullptr && type_expr->kind == Ast_TypeidType) { is_type_param = true; } else { if (param_value.kind != ParameterValue_Invalid) { |