aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/backend
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-11-29 19:37:15 +0100
committerMartin Odersky <odersky@gmail.com>2016-11-29 19:37:36 +0100
commit3116142d3e0e2d560b2fa79f73e699e1ac000204 (patch)
treea8fdcbeaccdbeae7a89e07f90e3af8579aec868b /compiler/src/dotty/tools/backend
parente7a0d03f0d29b4644b09b0a36fb3557849d6cf72 (diff)
downloaddotty-3116142d3e0e2d560b2fa79f73e699e1ac000204.tar.gz
dotty-3116142d3e0e2d560b2fa79f73e699e1ac000204.tar.bz2
dotty-3116142d3e0e2d560b2fa79f73e699e1ac000204.zip
Drop limit 30 of generated function classes
Function classes beyond 22 are now generated on demand, with no upper limit.
Diffstat (limited to 'compiler/src/dotty/tools/backend')
-rw-r--r--compiler/src/dotty/tools/backend/jvm/DottyBackendInterface.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/src/dotty/tools/backend/jvm/DottyBackendInterface.scala b/compiler/src/dotty/tools/backend/jvm/DottyBackendInterface.scala
index a7c449947..397382c2f 100644
--- a/compiler/src/dotty/tools/backend/jvm/DottyBackendInterface.scala
+++ b/compiler/src/dotty/tools/backend/jvm/DottyBackendInterface.scala
@@ -140,7 +140,7 @@ class DottyBackendInterface(outputDirectory: AbstractFile, val superCallsMap: Ma
val externalEqualsNumChar: Symbol = NoSymbol // ctx.requiredMethod(BoxesRunTimeTypeRef, nme.equalsNumChar) // this method is private
val externalEqualsNumObject: Symbol = defn.BoxesRunTimeModule.requiredMethod(nme.equalsNumObject)
val externalEquals: Symbol = defn.BoxesRunTimeClass.info.decl(nme.equals_).suchThat(toDenot(_).info.firstParamTypes.size == 2).symbol
- val MaxFunctionArity: Int = Definitions.MaxFunctionArity
+ val MaxFunctionArity: Int = Definitions.MaxImplementedFunctionArity
val FunctionClass: Array[Symbol] = defn.FunctionClassPerRun()
val AbstractFunctionClass: Array[Symbol] = defn.AbstractFunctionClassPerRun()
val PartialFunctionClass: Symbol = defn.PartialFunctionClass