aboutsummaryrefslogblamecommitdiff
path: root/tests/pos/i0290-type-bind.scala
blob: 83fdbbcc54d46736353c172db8440e04e9052bc4 (plain) (tree)


















                                               
object foo{
  val x = List(1,2,3)
  x match {
    case t: List[tt] => t.head.asInstanceOf[tt]
  }
}

object bar {

  class C[T <: Seq[_]]

  val x: AnyRef = new C

  x match {
    case x: C[u] =>
      def x: u = x
      val s: Seq[_] = x
  }
}