Skip to content

Commit a42c4ec

Browse files
committed
Adress reviewers comments
1 parent 226c7cb commit a42c4ec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/dotty/tools/dotc/core/Definitions.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import scala.reflect.api.{ Universe => ApiUniverse }
1414
object Definitions {
1515
val MaxTupleArity, MaxAbstractFunctionArity = 22
1616
val MaxFunctionArity = 24
17-
// Awaiting a definite solution that drops the limit altogether, 44 gives a safety
17+
// Awaiting a definite solution that drops the limit altogether, 24 gives a safety
1818
// margin over the previous 22, so that treecopiers in miniphases are allowed to
1919
// temporarily create larger closures. This is needed in lambda lift where large closures
2020
// are first formed by treecopiers before they are split apart into parameters and

tests/pos/i1385.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
object Test {
22
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 = {
3-
(a: Int) => { // This labda ends with 23 parameters (c1 to c22 and a)
3+
(a: Int) => { // This lambda ends with 23 parameters (c1 to c22 and a)
44
c22; c21; c20; c19; c18; c17; c16; c15; c14; c13; c12; c11; c10; c9; c8; c7; c6; c5; c4; c3; c2; c1
55
}
66
}

0 commit comments

Comments
 (0)