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:
@@ -2081,7 +2081,8 @@ fn (mut p Parser) type_decl() ast.TypeDecl {
|
|||||||
is_public: is_pub
|
is_public: is_pub
|
||||||
})
|
})
|
||||||
if idx == -1 {
|
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{}
|
return ast.AliasTypeDecl{}
|
||||||
}
|
}
|
||||||
if idx == pidx {
|
if idx == pidx {
|
||||||
|
Reference in New Issue
Block a user