1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

cgen: gen fn type declerations

This commit is contained in:
Joe Conigliaro
2020-03-16 20:12:03 +11:00
parent 0f160707a4
commit cf094c6265
5 changed files with 40 additions and 13 deletions

View File

@@ -81,7 +81,7 @@ pub fn (p mut Parser) parse_fn_type(name string) table.Type {
is_variadic: is_variadic
return_type: return_type
}
idx := p.table.find_or_register_fn_type(func)
idx := p.table.find_or_register_fn_type(func, false)
return table.new_type(idx)
}