aboutsummaryrefslogblamecommitdiff
path: root/tests/pos/t1085.scala
blob: 62f2be0b85072a70838500e921c6fa00130693df (plain) (tree)
1
2
3
4
5
6
7
8
9
                  
                  






                                                                           
trait Functor[a] {
    type MyType[a]
}

object Test {
  def listFunctor[a]: Functor[a]{type MyType[x]=List[x]} = new Functor[a] {
    type MyType[t]=List[t]
  }
}