parser: vfmt parser.v

pull/7355/head
joe-conigliaro 2020-12-16 18:09:02 +11:00
parent a7879ce77e
commit 7426544610
No known key found for this signature in database
GPG Key ID: C12F7136C08206F1
1 changed files with 2 additions and 1 deletions

View File

@ -2081,7 +2081,8 @@ fn (mut p Parser) type_decl() ast.TypeDecl {
is_public: is_pub
})
if idx == -1 {
p.error_with_pos('cannot register alias `$name`, another type with this name exists', decl_pos.extend(type_alias_pos))
p.error_with_pos('cannot register alias `$name`, another type with this name exists',
decl_pos.extend(type_alias_pos))
return ast.AliasTypeDecl{}
}
if idx == pidx {