summaryrefslogblamecommitdiff
path: root/test/files/run/t3346h.scala
blob: 97ebc9380c8ee0778a627c7557329dd66b82a6e3 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                                
import scala.language.implicitConversions

object Test extends App {
  trait Fundep[T, U] { def u(t: T): U }
  class C { def y = "x" }
  implicit val FundepStringC = new Fundep[String, C]{ def u(t: String) = new C }
  implicit def foo[T, U](x: T)(implicit y: Fundep[T, U]): U = y.u(x)
  println("x".y)
}