diff options
Diffstat (limited to 'tests/neg/function-arity.scala')
-rw-r--r-- | tests/neg/function-arity.scala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/neg/function-arity.scala b/tests/neg/function-arity.scala index 83aa94482..86fbab49f 100644 --- a/tests/neg/function-arity.scala +++ b/tests/neg/function-arity.scala @@ -18,5 +18,7 @@ object Test { unary[(Int, Int)]((x: String, y) => ()) // error - + def foo(a: Tuple2[Int, Int] => String): String = "" + def foo(a: Any => String) = () + foo((a: Int, b: String) => a + b) // error: none of the overloaded alternatives of method foo match arguments (Int, Int) } |