From: Shenghou Ma Date: Fri, 14 Feb 2014 02:01:33 +0000 (-0500) Subject: cmd/gc: rephrase the invalid indexing operation error message X-Git-Tag: go1.3beta1~711 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=656a40254566bb1fae3bfa30448d103d911e04c4;p=gostls13.git cmd/gc: rephrase the invalid indexing operation error message Old: prog.go:9: invalid operation: this[i] (index of type int) New: prog.go:9: invalid operation: this[i] (type int does not support indexing) LGTM=r R=golang-codereviews, r CC=golang-codereviews https://golang.org/cl/52540043 --- diff --git a/src/cmd/gc/typecheck.c b/src/cmd/gc/typecheck.c index 15d1dfbace..9e1ec10124 100644 --- a/src/cmd/gc/typecheck.c +++ b/src/cmd/gc/typecheck.c @@ -866,7 +866,7 @@ reswitch: goto error; switch(t->etype) { default: - yyerror("invalid operation: %N (index of type %T)", n, t); + yyerror("invalid operation: %N (type %T does not support indexing)", n, t); goto error;