mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
fix
This commit is contained in:
parent
f8737e5138
commit
5e2be445e1
1 changed files with 2 additions and 2 deletions
|
@ -342,8 +342,8 @@ pub fn (mut t TypeResolver) resolve_args(cur_fn &ast.FnDecl, func &ast.Fn, mut n
|
||||||
} else {
|
} else {
|
||||||
comptime_args[k] = ctyp
|
comptime_args[k] = ctyp
|
||||||
}
|
}
|
||||||
} else if mut call_arg.expr is ast.SelectorExpr && call_arg.expr.expr is ast.Ident
|
} else if mut call_arg.expr is ast.SelectorExpr
|
||||||
&& call_arg.expr.expr_type.has_flag(.generic) {
|
&& call_arg.expr.expr_type.has_flag(.generic) && call_arg.expr.expr is ast.Ident {
|
||||||
comptime_args[k] = t.typeof_type(call_arg.expr, call_arg.expr.typ)
|
comptime_args[k] = t.typeof_type(call_arg.expr, call_arg.expr.typ)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue