parser: vfmt parser.v
parent
a7879ce77e
commit
7426544610
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue