title: Compilation error - switch with enum
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2663980/why-do-i-get-an-enum-constant-reference-cannot-be-qualified-in-a-case-label">Why do I get an Enum constant reference cannot be qualified in a case label?</a>  </p>
  </blockquote>
  
  
  
  <p>Hi,
  Does someone knows why when I switch over an Enum, the cases should be on the unqualified Enum value? </p>
  
  <p>Example:</p>
  
  <pre><code>switch(var) {
  
  case Enum.FIRST:
  
  break;
  
  }
  </code></pre>
  
  <p>is illegal</p>
  
  <p>but:</p>
  
  <pre><code>switch(var) {
  
  case FIRST:
  
  break;
  
  }
  </code></pre>
  
  <p>is legal.</p>
  
  <p>I understand that var is of a specific type (Enum) but why the compiler cares if I use the fully qualified name of the Enum value?</p>