From bd0bb2bc3995e91daf92e0fbb9550f207d940e3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Oudompheng?= Date: Thu, 12 Jul 2012 23:26:52 +0200 Subject: [PATCH] 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 --- src/cmd/gc/subr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cmd/gc/subr.c b/src/cmd/gc/subr.c index 1bb83272c9..dfb425efcf 100644 --- a/src/cmd/gc/subr.c +++ b/src/cmd/gc/subr.c @@ -1384,6 +1384,7 @@ assignconv(Node *n, Type *t, char *context) r->type = t; r->typecheck = 1; r->implicit = 1; + r->orig = n; return r; }