mirror of
https://github.com/golang/go
synced 2024-11-25 07:17:56 -07:00
fix b/1722502
BUG=1722502 R=ken OCL=26526 CL=26526
This commit is contained in:
parent
658ca49898
commit
f7772627ad
@ -1806,6 +1806,9 @@ mkdotargs(Node *r, Node *rr, Iter *saver, Node *nn, Type *l, int fp)
|
|||||||
while(r != N) {
|
while(r != N) {
|
||||||
defaultlit(r, T);
|
defaultlit(r, T);
|
||||||
|
|
||||||
|
if(r->type == T) // type check failed
|
||||||
|
return N;
|
||||||
|
|
||||||
// generate the next structure field
|
// generate the next structure field
|
||||||
t = typ(TFIELD);
|
t = typ(TFIELD);
|
||||||
t->type = r->type;
|
t->type = r->type;
|
||||||
|
Loading…
Reference in New Issue
Block a user