mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
fix
This commit is contained in:
parent
98976c6e27
commit
4bd5ef73fe
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ fn (mut c Checker) match_expr(mut node ast.MatchExpr) ast.Type {
|
||||||
node.cond)
|
node.cond)
|
||||||
c_str = '${expr} == ${c.table.type_to_str(branch_type)}'
|
c_str = '${expr} == ${c.table.type_to_str(branch_type)}'
|
||||||
} else {
|
} 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 {
|
if !is_function {
|
||||||
// $match a { $int {}
|
// $match a { $int {}
|
||||||
comptime_match_branch_result = c.check_compatible_types(node.cond_type,
|
comptime_match_branch_result = c.check_compatible_types(node.cond_type,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue