We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d8e58ad + c8ed940 commit 7aa51e6Copy full SHA for 7aa51e6
compiler/src/dotty/tools/dotc/ast/Desugar.scala
@@ -1487,18 +1487,18 @@ object desugar {
1487
/** Map n-ary function `(x1: T1, ..., xn: Tn) => body` where n != 1 to unary function as follows:
1488
*
1489
* (x$1: (T1, ..., Tn)) => {
1490
- * def x1: T1 = x$1._1
+ * val x1: T1 = x$1._1
1491
* ...
1492
- * def xn: Tn = x$1._n
+ * val xn: Tn = x$1._n
1493
* body
1494
* }
1495
1496
* or if `isGenericTuple`
1497
1498
* (x$1: (T1, ... Tn) => {
1499
- * def x1: T1 = x$1.apply(0)
+ * val x1: T1 = x$1.apply(0)
1500
1501
- * def xn: Tn = x$1.apply(n-1)
+ * val xn: Tn = x$1.apply(n-1)
1502
1503
1504
0 commit comments