object Test { def hasMatch[T](x: AnyRef) = x.isInstanceOf[T] }