mirror of
https://github.com/golang/go
synced 2024-11-24 17:00:01 -07: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 New Issue
Block a user