v2: fix `type f fn...`
parent
c51f464446
commit
bb6098e2d3
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue