scala/scala — pull request #2742 by retronym (2013-07-16 07:38:55+00:00)
Title: SI-7655 Enforce stable id patterns conform to scrutinee type

This was only being done if the stable id pattern was a direct
reference to a module.

This commit distinguishes stable ID patterns with the recently
added facility in TreeInfo. (Actually, this might be overkill
in adapt and we could probably get away with just checking for
`_: Ident | _: Select`.)

Review by @adriaanm.

Opinions on the particular way to check for the stable ID pattern are welcome.