mirror of
https://github.com/golang/go
synced 2024-11-25 05:47:57 -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) {
|
||||
defaultlit(r, T);
|
||||
|
||||
if(r->type == T) // type check failed
|
||||
return N;
|
||||
|
||||
// generate the next structure field
|
||||
t = typ(TFIELD);
|
||||
t->type = r->type;
|
||||
|
Loading…
Reference in New Issue
Block a user