Commit db8d7a29 authored by Dmitriy Vyukov's avatar Dmitriy Vyukov

cmd/go: racewalk: fix nested struct handling

Fixes #4424.
Fixes #4425.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6849093
parent 7c295f3f
......@@ -430,6 +430,11 @@ callinstr(Node **np, NodeList **init, int wr, int skip)
n = treecopy(n);
f = nod(OXDOT, n, newname(t1->sym));
f->type = t1;
<<<<<<< local
if(f->type->etype == TFIELD)
f->type = f->type->type;
=======
>>>>>>> other
if(callinstr(&f, init, wr, 0)) {
typecheck(&f, Erv);
res = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment