aboutsummaryrefslogblamecommitdiff
path: root/tests/pos/i830.scala
blob: 8fcb29f366fda1656598fe29816129324d44c0c4 (plain) (tree)
1
2
3
4
5
6





                                                  
object C {
  trait X[T]
  implicit def u[A, B]: X[A | B] = new X[A | B] {}
  def y[T](implicit x: X[T]): T = ???
  val x: 1 & 2 | 2 & 3 = y
}