diff options
-rw-r--r-- | compiler/src/dotty/tools/dotc/core/Definitions.scala | 3 | ||||
-rw-r--r-- | library/src/scala/FunctionXXL.scala | 17 |
2 files changed, 19 insertions, 1 deletions
diff --git a/compiler/src/dotty/tools/dotc/core/Definitions.scala b/compiler/src/dotty/tools/dotc/core/Definitions.scala index 29b7bb60a..09485918f 100644 --- a/compiler/src/dotty/tools/dotc/core/Definitions.scala +++ b/compiler/src/dotty/tools/dotc/core/Definitions.scala @@ -20,7 +20,8 @@ object Definitions { /** The maximum arity N of a function type that's implemented * as a trait `scala.FunctionN`. Functions of higher arity are possible, - * but are mapped to functions taking a vararg by erasure. + * but are mapped in erasure to functions taking a single parameter of type + * Object[]. * The limit 22 is chosen for Scala2x interop. It could be something * else without affecting the set of programs that can be compiled. */ diff --git a/library/src/scala/FunctionXXL.scala b/library/src/scala/FunctionXXL.scala new file mode 100644 index 000000000..bc0de4482 --- /dev/null +++ b/library/src/scala/FunctionXXL.scala @@ -0,0 +1,17 @@ +/* __ *\ +** ________ ___ / / ___ Scala API ** +** / __/ __// _ | / / / _ | (c) 2002-2013, LAMP/EPFL ** +** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** +** /____/\___/_/ |_/____/_/ | | ** +** |/ ** +\* */ +// GENERATED CODE: DO NOT EDIT. See scala.Function0 for timestamp. +package scala + +/** A function with all parameters grouped in an array. */ +trait FunctionXXL { + + def apply(xs: Array[Object]): Object + + override def toString() = "<functionXXL>" +} |