summaryrefslogtreecommitdiff
path: root/test/files/pos/t1085.scala
blob: c59e657cb29a7352f36b185cfb4aff9b3ad69fc2 (plain) (blame)
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]
  }
}