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

parser: vfmt parser.v

This commit is contained in:
joe-conigliaro
2020-12-16 18:09:02 +11:00
parent a7879ce77e
commit 7426544610

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 {