summaryrefslogtreecommitdiff
path: root/test/files/run/t7291.scala
blob: d996c615ce4349a3f61d789cc86e473c3a6c8a82 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import scala.language.{ higherKinds, implicitConversions }

trait Fooable[T]
object Fooable {
  implicit def conjure[T]: Fooable[T] = {
    println("conjure")
    new Fooable[T]{}
  }

}

object Test {
  implicit def traversable[T, Coll[_] <: Traversable[_]](implicit
elem: Fooable[T]): Fooable[Coll[T]] = {
    println("traversable")
    new Fooable[Coll[T]]{}
  }
  def main(args: Array[String]) {
    implicitly[Fooable[List[Any]]] 
  }
}