1
0
mirror of https://github.com/golang/go synced 2024-11-15 10:50:37 -07:00

[release-branch.go1] cmd/gc: fix error message for type errors involving conversions.

««« backport a281d4bd1ba6
cmd/gc: fix error message for type errors involving conversions.

Fixes #3818.

R=golang-dev, rsc, r
CC=golang-dev, remy
https://golang.org/cl/6352106

»»»
This commit is contained in:
Rémy Oudompheng 2012-09-22 05:54:04 +10:00
parent 939e2b572d
commit ca64251832

View File

@ -1379,6 +1379,7 @@ assignconv(Node *n, Type *t, char *context)
r->type = t; r->type = t;
r->typecheck = 1; r->typecheck = 1;
r->implicit = 1; r->implicit = 1;
r->orig = n;
return r; return r;
} }