title: Left bit shifting 255 (as a byte)
body: <p>Can anyone explain why the following doesn't compile?</p>
  
  <pre><code>byte b = 255 &lt;&lt; 1
  </code></pre>
  
  <p>The error:</p>
  
  <blockquote>
    <p>Constant value '510' cannot be converted to a 'byte'</p>
  </blockquote>
  
  <p>I'm expecting the following in binary:</p>
  
  <pre><code>1111 1110
  </code></pre>
  
  <p>The type conversion has stumped me.</p>