diff options
author | Martin Odersky <odersky@gmail.com> | 2016-11-30 14:44:42 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-11-30 14:44:49 +0100 |
commit | 636608afacf943d8b3c05074a6f4de4ca40a4688 (patch) | |
tree | 2d5386b357a3ce4d6e8f65d938862061cdf15bf9 | |
parent | b94e6ea5a54d38470e5793c0084785e2d2f9a819 (diff) | |
download | dotty-636608afacf943d8b3c05074a6f4de4ca40a4688.tar.gz dotty-636608afacf943d8b3c05074a6f4de4ca40a4688.tar.bz2 dotty-636608afacf943d8b3c05074a6f4de4ca40a4688.zip |
Add missing file
-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>" +} |