summaryrefslogtreecommitdiff
path: root/test/files/neg/t3995.scala
Commit message (Collapse)AuthorAgeFilesLines
* Fix 36 typos (d-f)Janek Bogucki2015-06-211-1/+1
|
* Expand test with a stably qualified example.Jason Zaugg2012-12-051-0/+7
| | | | | | | | | | | | | | | | | | | | | | In the example below, we need a view from `String => l.F0`, and the companion object `FO` is reachable by a stable, non existentially-bound path. class Lift { def apply(f: F0) {} class F0 object F0 { implicit def f2f0(fn: String): F0 = ??? } } object Test { val l = new Lift l.apply("") // okay } Followup for SI-3995
* SI-3995 Exclude companions with an existential prefix.Jason Zaugg2012-12-051-0/+25
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.