mirror of https://github.com/golang/go.git
cmd/gc: revert CL 60740044
LGTM=iant R=iant CC=golang-codereviews https://golang.org/cl/60590047
This commit is contained in:
parent
f95a311c9b
commit
d0591d5ebd
|
|
@ -3199,7 +3199,7 @@ typecheckdef(Node *n)
|
|||
n->type->sym = n->sym;
|
||||
nerrors0 = nerrors;
|
||||
typecheckdeftype(n);
|
||||
if(n->type != T && n->type->etype == TFORW && nerrors > nerrors0) {
|
||||
if(n->type->etype == TFORW && nerrors > nerrors0) {
|
||||
// Something went wrong during type-checking,
|
||||
// but it was reported. Silence future errors.
|
||||
n->type->broke = 1;
|
||||
|
|
|
|||
Loading…
Reference in New Issue