From f14343f0527178f32eadadaed2c353864fac0be9 Mon Sep 17 00:00:00 2001 From: Christoffer Lerno Date: Thu, 22 Jul 2021 19:01:17 +0200 Subject: [PATCH] Fix :( --- src/compiler/sema_expr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/sema_expr.c b/src/compiler/sema_expr.c index 4709e4d46..1371d2f0c 100644 --- a/src/compiler/sema_expr.c +++ b/src/compiler/sema_expr.c @@ -1450,7 +1450,7 @@ static inline bool sema_expr_analyse_generic_call(Context *context, Type *to, Ex { Expr *arg = args[i]; Decl *param = func_params[i + offset]; - if (param->decl_kind == VARDECL_PARAM_CT_TYPE) + if (param->var.kind == VARDECL_PARAM_CT_TYPE) { if (!sema_analyse_expr_value(context, NULL, arg)) return false; if (arg->expr_kind != EXPR_TYPEINFO) @@ -1493,7 +1493,7 @@ static inline bool sema_expr_analyse_generic_call(Context *context, Type *to, Ex for (unsigned i = 0; i < explicit_args; i++) { Decl *param = func_params[i + offset]; - if (param->decl_kind == VARDECL_PARAM_CT_TYPE) + if (param->var.kind == VARDECL_PARAM_CT_TYPE) { for (unsigned j = i + 1; j < explicit_args; j++) {