-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Conversation
@@ -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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo
LGTM |
Add Function25 on top of #1413.
Explanatiions in comment in Definitions. Review by @nicolasstucki.