parser: allow all return types when fn used as param )
parent
80a6d78595
commit
909d3eed0a
|
@ -947,7 +947,7 @@ fn (p mut Parser) get_type() string {
|
|||
p.fn_args(mut f)
|
||||
// Same line, it's a return type
|
||||
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()
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue