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

Fix #1385: Temporarily lift 22 limit for functions #1413

Merged
merged 2 commits into from
Jul 25, 2016

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Jul 25, 2016

Explanatiions in comment in Definitions. Review by @nicolasstucki.

@@ -12,7 +12,13 @@ import collection.mutable
import scala.reflect.api.{ Universe => ApiUniverse }

object Definitions {
val MaxFunctionArity, MaxTupleArity = 22
val MaxTupleArity, MaxAbstractFunctionArity = 22
val MaxFunctionArity = 24
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MaxFunctionArity should be 44 as documented below.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually it is the doc that is off.

@nicolasstucki
Copy link
Contributor

That is all.

@@ -0,0 +1,7 @@
object Test {
def foo22[T](c1:T, c2:T, c3:T, c4:T, c5:T, c6:T, c7:T, c8:T, c9:T, c10:T, c11:T, c12:T, c13:T, c14:T, c15:T, c16:T, c17:T, c18:T, c19:T, c20:T, c21:T, c22:T): Int => T = {
(a: Int) => { // This labda ends with 23 parameters (c1 to c22 and a)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo

@nicolasstucki
Copy link
Contributor

LGTM

@odersky odersky merged commit b6882d6 into scala:master Jul 25, 2016
nicolasstucki added a commit to dotty-staging/dotty that referenced this pull request Jul 28, 2016
nicolasstucki added a commit to dotty-staging/dotty that referenced this pull request Jul 28, 2016
nicolasstucki added a commit to dotty-staging/dotty that referenced this pull request Jul 28, 2016
odersky added a commit that referenced this pull request Jul 31, 2016
@allanrenucci allanrenucci deleted the fix-#1385 branch December 14, 2017 16:59
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

Successfully merging this pull request may close these issues.

4 participants