mirror of
https://github.com/golang/go
synced 2024-11-25 05:57:57 -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:
parent
0c222d6e49
commit
98b27814ae
@ -753,7 +753,7 @@ uexpr:
|
||||
}
|
||||
| '~' uexpr
|
||||
{
|
||||
yyerror("the OCOM operator is ^");
|
||||
yyerror("the bitwise complement operator is ^");
|
||||
$$ = nod(OCOM, $2, N);
|
||||
}
|
||||
| '^' uexpr
|
||||
|
Loading…
Reference in New Issue
Block a user