summaryrefslogtreecommitdiff
path: root/test/files/neg/sammy_wrong_arity.scala
Commit message (Collapse)AuthorAgeFilesLines
* Don't pursue SAM translation after an arity mismatch.Jason Zaugg2013-10-081-0/+22
Before this change: scala> trait T { def apply(a: Int): Int } defined trait T scala> ((x: Int, y: Int) => 0): T <console>:9: error: object creation impossible, since method apply in trait T of type (a: Int)Int is not defined ((x: Int, y: Int) => 0): T ^ After the change, these cases report the same errors as they do *without* -Xexperimental.