aboutsummaryrefslogblamecommitdiff
path: root/tests/pos/t4975.scala
blob: 3339631dc34544f0b9a378de878ac814bc57cfe8 (plain) (tree)
1
2
3
4
5
6
7





                      
                                                    




                              
object ImplicitScope {
  class A[T]

  def foo: Unit = {
    trait B
    object B {
      implicit def ab: ImplicitScope.A[B] = new A[B]
    }

    implicitly[A[B]]  // Error
  }
}