mirror of
https://github.com/golang/go
synced 2024-11-22 01:54:42 -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
|
| '~' uexpr
|
||||||
{
|
{
|
||||||
yyerror("the OCOM operator is ^");
|
yyerror("the bitwise complement operator is ^");
|
||||||
$$ = nod(OCOM, $2, N);
|
$$ = nod(OCOM, $2, N);
|
||||||
}
|
}
|
||||||
| '^' uexpr
|
| '^' uexpr
|
||||||
|
Loading…
Reference in New Issue
Block a user