Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tuple vs Multiple Arguments error message regression #5007

Closed
scabug opened this issue Sep 19, 2011 · 3 comments
Closed

Tuple vs Multiple Arguments error message regression #5007

scabug opened this issue Sep 19, 2011 · 3 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Sep 19, 2011

As of Scala 2.9.1, the error message present on Scala 2.8.1/2.9.0 regarding tupled functions vs multiple parameter functions is no longer clear. 2.9.0:

scala> def f[A,B](m: Map[A, B], p: (A, B) => Boolean) = m partition p
<console>:5: error: type mismatch;
 found   : (A, B) => Boolean
 required: ((A, B)) => Boolean
       def f[A,B](m: Map[A, B], p: (A, B) => Boolean) = m partition p
                                                                    ^

2.9.1:

scala> def f[A,B](m: Map[A, B], p: (A, B) => Boolean) = m partition p
<console>:7: error: type mismatch;
 found   : (A, B) => Boolean
 required: (A, B) => Boolean
       def f[A,B](m: Map[A, B], p: (A, B) => Boolean) = m partition p
                                                                    ^
@scabug
Copy link
Author

scabug commented Sep 19, 2011

Imported From: https://issues.scala-lang.org/browse/SI-5007?orig=1
Reporter: @dcsobral
Affected Versions: 2.9.1

@scabug
Copy link
Author

scabug commented Oct 13, 2011

@paulp said:
I fixed this against some other ticket reporting it.

@scabug
Copy link
Author

scabug commented Nov 25, 2011

@Blaisorblade said:
That's #5067. Will the fix be in 2.9.2?

@scabug scabug closed this as completed Feb 27, 2012
@scabug scabug added this to the 2.9.2 milestone Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants