mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32: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 {
|
||||
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) {
|
||||
comptime_args[k] = t.typeof_type(call_arg.expr, call_arg.expr.typ)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue