summaryrefslogblamecommitdiff
path: root/test/files/pos/t9157.scala
blob: e178b5d84d54b0a1153f84f073e09329977162b5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                                                                                                                         
trait Flow[-In, +Out] {
  type Repr[+O] <: Flow[In, O]
  def map: Repr[String]
}

class Test {
  // typechecking was exponentially slow wrt the number of projections here.
  def slowFlow(
    f: Flow[String,String]#Repr[String]#Repr[String]#Repr[String]#Repr[String]#Repr[String]#Repr[String]#Repr[String]#Repr[String]#Repr[String]#Repr[String]#Repr[String]
  ) = {
    f.map
  }
}