scala/scala — pull request #1709 by retronym (2012-12-04 23:13:16+00:00)
Title: SI-3995 Exclude companions with an existential prefix.

In `(qual: Q).apply(expr)` where `expr` must be implictily
converted to a path dependent type `T` defined in `qual`,
we were looking for companion implicits via a path prefixed
by an existential skolem `_1`. These aren't much good to us,
as when we try to feed them into `mkAttributedQualifer`, a
crash rightly ensues.

This commit excludes companions prefixed by an existentially
bound path.

Review by @adriaanm