1
0
mirror of https://github.com/golang/go synced 2024-11-21 20:34:40 -07:00

gc: better error message when ~ operator is found

Fixes #844.

R=ken2, rsc, ken3
CC=golang-dev
https://golang.org/cl/1593041
This commit is contained in:
Robert Griesemer 2010-06-07 18:27:26 -07:00
parent 0c222d6e49
commit 98b27814ae

View File

@ -753,7 +753,7 @@ uexpr:
}
| '~' uexpr
{
yyerror("the OCOM operator is ^");
yyerror("the bitwise complement operator is ^");
$$ = nod(OCOM, $2, N);
}
| '^' uexpr