aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg-with-implicits/t2405.scala
blob: c005e7a543130d628cda6a244aaef1c1659bd5ec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
object A { implicit val x: Int = 1 }

// Expecting shadowing #1
object Test2 {
    {
        import A.{x => y}
        def y: Int = 0
        implicitly[Int]
    }
}