mirror of https://github.com/golang/go.git
parent
2ce8b444b9
commit
466dd8da4e
|
|
@ -1629,7 +1629,7 @@ embedded(Sym *s)
|
|||
if(s == S)
|
||||
return n;
|
||||
n->type = oldtype(s);
|
||||
if(isptr[n->type->etype])
|
||||
if(n->type != T && isptr[n->type->etype])
|
||||
yyerror("embedded type cannot be a pointer");
|
||||
return n;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue