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
doc: make TypeTest example compiling (scala#23009)
Current example is not compiling:
```scala
import scala.reflect.{ClassTag, TypeTest}
val tt: TypeTest[Any, String] =
new TypeTest[Any, String]:
def unapply(s: Any): Option[s.type & String] = s match
case s: String => Some(s) // compiler error Found: (s : String) Required: (s² : Any) & String
case _ => None
```
https://scastie.scala-lang.org/road21/jq3j9XsUTdeshqbHxDXv3w
[Cherry-picked 6c021c6]
0 commit comments