aboutsummaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorodersky <odersky@gmail.com>2016-12-17 15:10:35 +0100
committerGitHub <noreply@github.com>2016-12-17 15:10:35 +0100
commitd69e8490dc66f98719fa1483e57d824c3a61f99c (patch)
tree1401ceeb635b72b5a92d606843d4de35ed514770 /compiler
parentee5dd32bc261eab3454f3db34892d22a01e2375c (diff)
parent4ff194e7d67bd8eb012b3f0b7ff552f5afbba206 (diff)
downloaddotty-d69e8490dc66f98719fa1483e57d824c3a61f99c.tar.gz
dotty-d69e8490dc66f98719fa1483e57d824c3a61f99c.tar.bz2
dotty-d69e8490dc66f98719fa1483e57d824c3a61f99c.zip
Merge pull request #1816 from dotty-staging/fix-#1799
Fix #1799: Make compilation of FunctionN traits possible.
Diffstat (limited to 'compiler')
-rw-r--r--compiler/src/dotty/tools/dotc/core/Definitions.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/src/dotty/tools/dotc/core/Definitions.scala b/compiler/src/dotty/tools/dotc/core/Definitions.scala
index 9759e39fc..3f1f3e294 100644
--- a/compiler/src/dotty/tools/dotc/core/Definitions.scala
+++ b/compiler/src/dotty/tools/dotc/core/Definitions.scala
@@ -834,7 +834,7 @@ class Definitions {
val newDecls = new MutableScope(oldDecls) {
override def lookupEntry(name: Name)(implicit ctx: Context): ScopeEntry = {
val res = super.lookupEntry(name)
- if (res == null && name.functionArity > 0)
+ if (res == null && name.functionArity > MaxImplementedFunctionArity)
newScopeEntry(newFunctionNTrait(name.functionArity))
else res
}