v2: fix `type f fn...`

pull/3859/head
Alexander Medvednikov 2020-02-27 00:18:14 +01:00
parent c51f464446
commit bb6098e2d3
1 changed files with 1 additions and 1 deletions

View File

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