summaryrefslogtreecommitdiff
path: root/test/files/neg/t2421b.scala
blob: d8159a8c371af47c85ece8571326922d5da7f2e7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
object Test {
  class A
  class B
  class C
  class F[X]

  def f(implicit aa: F[A]) = println(aa)

  // implicit def a : F[A] = new F[A]()
  implicit def b[X <: B] = new F[X]()

  f
}

/* bug:
error: type arguments [Test2.A] do not conform to method b's type parameter bounds [X <: Test2.B]
*/