title: Scala, generic tuple
body: <p>I have a generic method that can accept any tuple of any size, the only constraint is that the first element of this tuple should be of type <code>MyClass</code>.</p>
  
  <p>Something like this:</p>
  
  <pre><code>trait MyTrait[T &lt;: (MyClass, _*)] {
    getMyClass(x: T): MyClass = x._1
  }
  </code></pre>
  
  <p>I've tried this</p>
  
  <pre><code>trait MyTrait[T &lt;: (MyClass, _) with (MyClass, _, _) with (MyClass, _, _) with ...] {
    getMyClass(x: T): MyClass = x._1
  }
  </code></pre>
  
  <p>but I get the error <code>unboud wildcard type</code></p>