-
This commit is contained in:
2
parser.v
2
parser.v
@@ -638,6 +638,8 @@ fn (mut p Parser) parse_func_decl() FuncDecl {
|
||||
else{parse_error("Expected function return type after name when declaring ${name_tok.text}")}
|
||||
}
|
||||
|
||||
p.symbols.define_func(name_tok.text, type_tok.text, Block{})
|
||||
|
||||
block := p.parse_block(true)
|
||||
|
||||
return_stmts := p.get_return_stmts_recursive(block)
|
||||
|
||||
Reference in New Issue
Block a user