mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
cgen: fix print(struct); use automatic referencing
This commit is contained in:
@@ -1330,7 +1330,7 @@ fn (p mut Parser) fn_call_args(f mut Fn, generic_param_types []string) {
|
||||
p.check(.rpar)
|
||||
if f.is_generic && !p.scanner.is_fmt {
|
||||
type_map := p.extract_type_inst(f, saved_args)
|
||||
p.dispatch_generic_fn_instance(mut f, &type_map)
|
||||
p.dispatch_generic_fn_instance(mut f, type_map)
|
||||
}
|
||||
if f.is_variadic {
|
||||
p.fn_gen_caller_vargs(f, varg_type, varg_values)
|
||||
|
||||
@@ -365,7 +365,7 @@ fn (p mut Parser) struct_init(typ_ string) string {
|
||||
t = p.table.find_type(t.name)
|
||||
typ = t.name
|
||||
}
|
||||
if p.gen_struct_init(typ, &t) {
|
||||
if p.gen_struct_init(typ, t) {
|
||||
return typ
|
||||
}
|
||||
ptr := typ.contains('*')
|
||||
|
||||
Reference in New Issue
Block a user