aboutsummaryrefslogblamecommitdiff
path: root/tests/pos/dependent-implicits.scala
blob: 17a3231124731027acf26000f121af34196fa425 (plain) (tree)
1
2
3
4
5
6
7






                                               
object Test {
  trait T { type X; val x: X }
  implicit def f(x: T): x.X = x.x
  val t = new T { type X = String; val x = "" }
  val x: String = t
  val uy: String = f(t)
}