mirror of
https://github.com/vlang/v.git
synced 2025-09-14 23:12:33 +03:00
parser: allow all return types when fn used as param )
This commit is contained in:
parent
80a6d78595
commit
909d3eed0a
1 changed files with 1 additions and 1 deletions
|
@ -947,7 +947,7 @@ fn (p mut Parser) get_type() string {
|
||||||
p.fn_args(mut f)
|
p.fn_args(mut f)
|
||||||
// Same line, it's a return type
|
// Same line, it's a return type
|
||||||
if p.scanner.line_nr == line_nr {
|
if p.scanner.line_nr == line_nr {
|
||||||
if p.tok == .name {
|
if p.tok in [TokenKind.name, .mul, .amp, .lsbr, .question, .lpar] {
|
||||||
f.typ = p.get_type()
|
f.typ = p.get_type()
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue