title: How to pattern-match against every numeric class in one case?
body: <p>Suppose I have</p>
  
  <pre><code>def foo(x: Any) = x match {
    case s: String =&gt; println(0)
    case i: Int =&gt; println(1)
    case l: Long =&gt; println(2)
    //...
  }
  </code></pre>
  
  <p>Is there any way to make something like the following?</p>
  
  <pre><code>def foo(x: Any) = x match {
    case s: String =&gt; println(0)
    case i: Numeric =&gt; println("Numeric")
  }
  </code></pre>