mirror of
https://github.com/vlang/v.git
synced 2025-09-14 15:02:33 +03:00
parser: allow multi returns in high order fns
This commit is contained in:
parent
236b34c009
commit
febd532c4a
3 changed files with 31 additions and 18 deletions
|
@ -937,7 +937,8 @@ fn (p mut Parser) get_type() string {
|
|||
}
|
||||
p.check(.rpar)
|
||||
// p.inside_tuple = false
|
||||
return '_V_MulRet_' + types.join('_V_').replace('*', '_PTR_')
|
||||
typ = p.register_multi_return_stuct(types)
|
||||
return typ
|
||||
}
|
||||
// fn type
|
||||
if p.tok == .func {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue