mirror of
https://github.com/golang/go
synced 2024-11-22 08:14:40 -07:00
weasel words about types in shift expressions suggested by rsc
R=rsc OCL=26220 CL=26220
This commit is contained in:
parent
6eb54cb05b
commit
e20834092f
@ -2426,7 +2426,7 @@ unary_op = "+" | "-" | "!" | "^" | "*" | "&" | "<-" .
|
|||||||
The operand types in binary operations must be equal, with the following exceptions:
|
The operand types in binary operations must be equal, with the following exceptions:
|
||||||
</p>
|
</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>If one operand has numeric type and the other operand is
|
<li>Except in shift expressios, if one operand has numeric type and the other operand is
|
||||||
an ideal number, the ideal number is converted to match the type of
|
an ideal number, the ideal number is converted to match the type of
|
||||||
the other operand (§Expressions).</li>
|
the other operand (§Expressions).</li>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user