adriaanm/scala — pull request #8 by retronym (2013-10-08 07:04:58+00:00)
Title: Don't pursue SAM translation after an arity mismatch.

Before this change:

scala> trait T { def apply(a: Int): Int }
defined trait T

scala> ((x: Int, y: Int) => 0): T
: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.