scala/scala — pull request #3604 by densh (2014-03-06 15:49:15+00:00)
Title: SI-8366 make partial function and match trees disjoint

Previously one could match a partial function with match quasiquote:

scala> val q"$scrutinee match { case ..$cases }" = q"{ case Foo => Bar
}"
scrutinee: universe.Tree =
cases: List[universe.CaseDef] = List(case Foo => Bar)

This was quite annoying as it leaked encoding of partial functions as
Match trees with empty tree in place of scrutinee.

This commit make sure that matches and partial functions are disjoint
and don't match one another (while preserving original encoding under
the hood out of sight of the end user.)

review @retronym