scala/scala — pull request #598 by retronym (2012-05-22 06:08:55+00:00)
Title: SI-2405 Confer implicit privileges to renamed imports.

Yin and yang would be pleased: A fix in two parts.

1. Use the name of the imported symbol, rather than the alias, in the generated `Select(qual, name)` tree.
2. Do the opposite in `isQualifyingImplicit`, which performs one part of the shadowing check.

But there is still work to do. The second part of the shadowing check, `nonImplicitSynonymInScope`,
fails to notice this case (irrespective of aliased imports).

```scala
// Expecting shadowing #2. Alas, none is cast!
object Test1 {
object A { implicit val x: Int = 1 }
import A.x
def x: Int = 0
implicitly[Int]
}
```

I'm hitching the residual problem to [SI-4270](https://issues.scala-lang.org/browse/SI-4270?focusedCommentId=57823&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-57823)'s wagon.