aboutsummaryrefslogblamecommitdiff
path: root/tests/pos/t2712-6.scala
blob: dbba60472cb7d790f940456fffa6373b67ef6665 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                                   
package test

object Tags {
  type Tagged[A, T] = {type Tag = T; type Self = A}

  type @@[T, Tag] = Tagged[T, Tag]

  trait Disjunction

  def meh[M[_], A](ma: M[A]): M[A] = ma
  meh(null: Int @@ Disjunction)//.asInstanceOf[Int @@ Disjunction])
}