1
0
mirror of https://github.com/golang/go synced 2024-11-26 13:48:05 -07:00
R=r
OCL=15805
CL=15805
This commit is contained in:
Ken Thompson 2008-09-24 16:20:01 -07:00
parent c5a29a6dd4
commit bcd07252e1

View File

@ -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;
}