mirror of
https://github.com/golang/go
synced 2024-10-14 03:43:28 +00:00
cmd/gc: show duplicate key in error
R=ken2 CC=golang-dev https://golang.org/cl/5728064
This commit is contained in:
parent
1b311776c4
commit
5ab9d2befd
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue