mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Fix constant default value error #408 (typo)
This commit is contained in:
+1
-1
@@ -1538,7 +1538,7 @@ Type *check_get_params(CheckerContext *ctx, Scope *scope, Ast *_params, bool *is
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (is_poly_name) {
|
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;
|
is_type_param = true;
|
||||||
} else {
|
} else {
|
||||||
if (param_value.kind != ParameterValue_Invalid) {
|
if (param_value.kind != ParameterValue_Invalid) {
|
||||||
|
|||||||
Reference in New Issue
Block a user