scala/scala — pull request #3652 by densh (2014-03-24 12:11:24+00:00)
Title: SI-8388 consistently match type trees by originals

Due to the fact that all TypTrees are transformed into TypeTrees
during typechecking one couldn't treat typed type trees in the same
way as they treat untyped type trees.

This change implements support for pattern matching of TypeTrees as their
corresponding TypTree equivalent using tree preserved in the original.

The implementation itself is a trivial wrapping of regular TypTree
extrarctors into MaybeTypeTreeOriginal.

review @retronym