We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d36e423 + 2a683e3 commit 13077f7Copy full SHA for 13077f7
compiler/src/dotty/tools/dotc/ast/Desugar.scala
@@ -1868,18 +1868,18 @@ object desugar {
1868
/** Map n-ary function `(x1: T1, ..., xn: Tn) => body` where n != 1 to unary function as follows:
1869
*
1870
* (x$1: (T1, ..., Tn)) => {
1871
- * def x1: T1 = x$1._1
+ * val x1: T1 = x$1._1
1872
* ...
1873
- * def xn: Tn = x$1._n
+ * val xn: Tn = x$1._n
1874
* body
1875
* }
1876
1877
* or if `isGenericTuple`
1878
1879
* (x$1: (T1, ... Tn) => {
1880
- * def x1: T1 = x$1.apply(0)
+ * val x1: T1 = x$1.apply(0)
1881
1882
- * def xn: Tn = x$1.apply(n-1)
+ * val xn: Tn = x$1.apply(n-1)
1883
1884
1885
0 commit comments