Commit 6dbba672 authored by Russ Cox's avatar Russ Cox

gc: distinguish array, slice literal in error messages

R=ken2
CC=golang-dev
https://golang.org/cl/1138041
parent 20ba0909
......@@ -251,7 +251,10 @@ exprfmt(Fmt *f, Node *n, int prec)
break;
case OARRAYLIT:
if(isslice(n->type))
fmtprint(f, "slice literal");
else
fmtprint(f, "array literal");
break;
case OMAPLIT:
......
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