Skip to content

Commit 636608a

Browse files
committed
Add missing file
1 parent b94e6ea commit 636608a

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ object Definitions {
2020

2121
/** The maximum arity N of a function type that's implemented
2222
* as a trait `scala.FunctionN`. Functions of higher arity are possible,
23-
* but are mapped to functions taking a vararg by erasure.
23+
* but are mapped in erasure to functions taking a single parameter of type
24+
* Object[].
2425
* The limit 22 is chosen for Scala2x interop. It could be something
2526
* else without affecting the set of programs that can be compiled.
2627
*/

library/src/scala/FunctionXXL.scala

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/* __ *\
2+
** ________ ___ / / ___ Scala API **
3+
** / __/ __// _ | / / / _ | (c) 2002-2013, LAMP/EPFL **
4+
** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
5+
** /____/\___/_/ |_/____/_/ | | **
6+
** |/ **
7+
\* */
8+
// GENERATED CODE: DO NOT EDIT. See scala.Function0 for timestamp.
9+
package scala
10+
11+
/** A function with all parameters grouped in an array. */
12+
trait FunctionXXL {
13+
14+
def apply(xs: Array[Object]): Object
15+
16+
override def toString() = "<functionXXL>"
17+
}

0 commit comments

Comments
 (0)