mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parser: fix interface method return type parsing
This commit is contained in:
@@ -257,7 +257,7 @@ fn (mut p Parser) interface_decl() ast.InterfaceDecl {
|
|||||||
args: args
|
args: args
|
||||||
return_type: table.void_type
|
return_type: table.void_type
|
||||||
}
|
}
|
||||||
if p.tok.kind == .name && p.tok.line_nr == line_nr {
|
if p.tok.kind.is_start_of_type() && p.tok.line_nr == line_nr {
|
||||||
method.return_type = p.parse_type()
|
method.return_type = p.parse_type()
|
||||||
}
|
}
|
||||||
methods << method
|
methods << method
|
||||||
|
|||||||
Reference in New Issue
Block a user