diff options
author | Martin Odersky <odersky@gmail.com> | 2016-07-25 12:26:33 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-07-25 12:26:33 +0200 |
commit | a42c4eccdbb623d4f00b406e6985336deb4f3922 (patch) | |
tree | 2a92bb0e6c2b0dd4d8666dbaf8d2f6973e134289 | |
parent | 226c7cb390d53acc2c18918d5a8f4b7133d4a4ac (diff) | |
download | dotty-a42c4eccdbb623d4f00b406e6985336deb4f3922.tar.gz dotty-a42c4eccdbb623d4f00b406e6985336deb4f3922.tar.bz2 dotty-a42c4eccdbb623d4f00b406e6985336deb4f3922.zip |
Adress reviewers comments
-rw-r--r-- | src/dotty/tools/dotc/core/Definitions.scala | 2 | ||||
-rw-r--r-- | tests/pos/i1385.scala | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/core/Definitions.scala b/src/dotty/tools/dotc/core/Definitions.scala index 34b2d0562..5a19903be 100644 --- a/src/dotty/tools/dotc/core/Definitions.scala +++ b/src/dotty/tools/dotc/core/Definitions.scala @@ -14,7 +14,7 @@ import scala.reflect.api.{ Universe => ApiUniverse } object Definitions { val MaxTupleArity, MaxAbstractFunctionArity = 22 val MaxFunctionArity = 24 - // Awaiting a definite solution that drops the limit altogether, 44 gives a safety + // Awaiting a definite solution that drops the limit altogether, 24 gives a safety // margin over the previous 22, so that treecopiers in miniphases are allowed to // temporarily create larger closures. This is needed in lambda lift where large closures // are first formed by treecopiers before they are split apart into parameters and diff --git a/tests/pos/i1385.scala b/tests/pos/i1385.scala index d9fc015ce..87a0127cb 100644 --- a/tests/pos/i1385.scala +++ b/tests/pos/i1385.scala @@ -1,6 +1,6 @@ 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) + (a: Int) => { // This lambda ends with 23 parameters (c1 to c22 and a) c22; c21; c20; c19; c18; c17; c16; c15; c14; c13; c12; c11; c10; c9; c8; c7; c6; c5; c4; c3; c2; c1 } } |