title: Scala enumeration type fail in match/case
body: <p>Enumerated values seem to fail in match/case expressions. This is what happens in a worksheet.</p>
  
  <pre><code>  object EnumType extends Enumeration {
      type EnumType = Value
      val a, b = Value
    }
  
    import EnumType._
    val x: EnumType = b                //&gt; x : ... .EnumType.EnumType = b
  
    x match {
      case a =&gt; "a"
      case b =&gt; "b"
    }                                  //&gt; res0: String = a
  
    if (x == a) "a" else "b"           //&gt; res1: String = b
  </code></pre>
  
  <p>What's going on?  Thanks.</p>