summaryrefslogtreecommitdiff
path: root/test/files/pos/sammy_poly.scala
blob: f03be4f8f5bac90cbdd290f01c19314ba255e914 (plain) (blame)
1
2
3
4
5
6
// test synthesizeSAMFunction where the sam type is not fully defined
class T {
  trait F[T, U] { def apply(x: T): U }
  def app[T, U](x: T)(f: F[T, U]): U = f(x)
  app(1)(x => List(x))
}