scala/scala — pull request #1016 by hubertp (2012-07-30 08:27:33+00:00)
Title: Fixed SI-5031. Only consider classes when looking for companion class.

sym.effectiveOwner revealed this piece of inconsistency. companionModule
is fine because similar check is there already.

I removed a bunch of feature imports that were unnecessary.

Review by @paulp.