Closed
Description
Compiler version
3.2.2
Minimized code
def collectKeys[A, B, C](xs: Map[A, B])(f: PartialFunction[A, C]): Map[C, B] =
xs.collect{ case (f(c) , b) => (c, b) }
Output
With no flags produces no warnings.
With scalacOptions ++= Vector("-source", "future") produces warning
pattern selector should be an instance of Matchable,,
but it has unmatchable type A instead