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

v2: fix type f fn...

This commit is contained in:
Alexander Medvednikov 2020-02-27 00:18:14 +01:00
parent c51f464446
commit bb6098e2d3

View File

@ -1760,7 +1760,7 @@ fn (p mut Parser) type_decl() ast.TypeDecl {
}
}
else {
p.check_name()
p.parse_type()
}
p.table.register_type_symbol(table.TypeSymbol{
kind: .sum_type