Commit 5ab9d2be authored by Russ Cox's avatar Russ Cox

cmd/gc: show duplicate key in error

R=ken2
CC=golang-dev
https://golang.org/cl/5728064
parent 1b311776
......@@ -1964,7 +1964,7 @@ keydup(Node *n, Node *hash[], ulong nhash)
b = cmp.val.u.bval;
if(b) {
// too lazy to print the literal
yyerror("duplicate key in map literal");
yyerror("duplicate key %N in map literal", n);
return;
}
}
......
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