mirror of
https://github.com/golang/go
synced 2024-11-26 13:48:05 -07:00
export
R=r OCL=15805 CL=15805
This commit is contained in:
parent
c5a29a6dd4
commit
bcd07252e1
@ -507,7 +507,9 @@ importaddtyp(Node *ss, Type *t)
|
||||
|
||||
s = getimportsym(ss);
|
||||
if(s->otype != T && !eqtype(t, s->otype, 0)) {
|
||||
yyerror("import redeclaration of %S %lT => %lT\n", s, s->otype, t);
|
||||
if(!isptrto(t, TFORW))
|
||||
yyerror("import redeclaration of %lS %lT => %lT\n",
|
||||
s, s->otype, t);
|
||||
s->otype = t;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user