From 4bd5ef73fe3d8aeb68aaed5ccf2a3450a19a777c Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Tue, 9 Sep 2025 18:37:03 -0300 Subject: [PATCH] fix --- vlib/v/checker/match.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/checker/match.v b/vlib/v/checker/match.v index c1bc264c8b..56f51e0cb9 100644 --- a/vlib/v/checker/match.v +++ b/vlib/v/checker/match.v @@ -145,7 +145,7 @@ fn (mut c Checker) match_expr(mut node ast.MatchExpr) ast.Type { node.cond) c_str = '${expr} == ${c.table.type_to_str(branch_type)}' } else { - is_function := c.table.sym(node.cond_type).kind == .function + is_function := c.table.final_sym(node.cond_type).kind == .function if !is_function { // $match a { $int {} comptime_match_branch_result = c.check_compatible_types(node.cond_type,