You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
type Ext[S <: Seq[_]] = S match {
case Seq[t] => t
}
implicitly[Ext[Seq[Int]] =:= Int] // e.scala: Cannot prove that e.Ext[Seq[Int]] =:= Int
If I change the definition of Ext as follow, the consequence will differ:
type Ext[S] = S match {
case Seq[t] => t
} // success!
type Ext[S <: Any] = S match {
case Seq[t] => t
} // success!
type Ext[S <: Seq[Any]] = S match {
case Seq[t] => t
} // same error