summaryrefslogtreecommitdiff
path: root/test/files/neg/sammy_error.scala
blob: dbddebf325693d240d8ab973c4af7d6ff799d608 (plain) (blame)
1
2
3
4
5
6
7
trait F1[A, B] { def apply(a: A): B }

class Test {
  def foo[A](f1: F1[A, A]) = f1

  foo(x => x) // should result in only one error (the second one stemmed from adapting to SAM when the tree was erroneous)
}