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

Partial application broken for Function21 and Function22 #5633

Closed
scabug opened this issue Mar 30, 2012 · 4 comments
Closed

Partial application broken for Function21 and Function22 #5633

scabug opened this issue Mar 30, 2012 · 4 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Mar 30, 2012

The following works in scala-2.8.1 and doesn't in 2.9.1 to 2.9.2-RC2:

def f(x1:Int, x2:Int, x3:Int, x4:Int, x5:Int, x6:Int, x7:Int, x8:Int, x9:Int, x10:Int, x11:Int, x12:Int, x13:Int, x14:Int, x15:Int, x16:Int, x17:Int, x18:Int, x19:Int, x20:Int, x21:Int) =
  x1+x2+x3+x4+x5+x6+x7+x8+x9+x10+x11+x12+x13+x14+x15+x16+x17+x18+x19+x20+x21

f _

The error (in the REPL) is:

error: missing arguments for method f in object $iw;
follow this method with `_' if you want to treat it as a partially applied function

Same problem with Function22. Might be related to #4545?

@scabug
Copy link
Author

scabug commented Mar 30, 2012

Imported From: https://issues.scala-lang.org/browse/SI-5633?orig=1
Reporter: Antonio Bellezza (abelln4)
Affected Versions: 2.9.1
Other Milestones: 2.10.0

@scabug
Copy link
Author

scabug commented Mar 30, 2012

@paulp said:
100% it's #4545. I'm sorry that has slipped through the cracks.

@scabug
Copy link
Author

scabug commented Mar 30, 2012

@paulp said:
Fixed in 75e584bd0c and backported to 2.9.x.

@scabug scabug closed this as completed Mar 30, 2012
@scabug
Copy link
Author

scabug commented Mar 30, 2012

Antonio Bellezza (abelln4) said:
Thanks. That was quick!

@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