summaryrefslogtreecommitdiff
path: root/parser/parse.go
diff options
context:
space:
mode:
Diffstat (limited to 'parser/parse.go')
-rw-r--r--parser/parse.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/parser/parse.go b/parser/parse.go
index 95179be..daf30ca 100644
--- a/parser/parse.go
+++ b/parser/parse.go
@@ -497,8 +497,7 @@ func (p *Parser) parseReturn(in Tokens) (out Tokens, err error) {
// TODO: the function symbol should be already present in the parser context.
// otherwise no way to handle anonymous func.
s := p.function
- in[0].Beg = s.Type.Rtype.NumOut()
- in[0].End = s.Type.Rtype.NumIn()
+ in[0].Arg = []any{s.Type.Rtype.NumOut(), s.Type.Rtype.NumIn()}
out = append(out, in[0])
return out, err
}