Commit e2083409 authored by Rob Pike's avatar Rob Pike

weasel words about types in shift expressions suggested by rsc

R=rsc
OCL=26220
CL=26220
parent 6eb54cb0
...@@ -2426,7 +2426,7 @@ unary_op = "+" | "-" | "!" | "^" | "*" | "&" | "<-" . ...@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment