Commit 656a4025 authored by Shenghou Ma's avatar Shenghou Ma

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
parent a069cf04
......@@ -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;
......
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