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,