1 2 3 4
trait AnyRef { val StringMatch = new AnyRef {} trait Something { (AnyRef) match { case (StringMatch) => } } }