mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
fix
This commit is contained in:
parent
5c67e5466e
commit
f8737e5138
1 changed files with 1 additions and 1 deletions
|
@ -342,7 +342,7 @@ 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
|
} else if mut call_arg.expr is ast.SelectorExpr && call_arg.expr.expr is ast.Ident
|
||||||
&& call_arg.expr.expr_type.has_flag(.generic) {
|
&& call_arg.expr.expr_type.has_flag(.generic) {
|
||||||
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