From 7c0b16378dccc1c2da17de0c3506fb6fceb3e9d2 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Sat, 17 Dec 2016 19:01:25 +0100 Subject: Fix formatting --- compiler/src/dotty/tools/dotc/core/Definitions.scala | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'compiler/src/dotty/tools/dotc/core/Definitions.scala') diff --git a/compiler/src/dotty/tools/dotc/core/Definitions.scala b/compiler/src/dotty/tools/dotc/core/Definitions.scala index 5162d63a8..45e37eb8b 100644 --- a/compiler/src/dotty/tools/dotc/core/Definitions.scala +++ b/compiler/src/dotty/tools/dotc/core/Definitions.scala @@ -877,8 +877,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.isTypeName && - name.functionArity > maxImplemented(name)) + if (res == null && name.isTypeName && name.functionArity > maxImplemented(name)) newScopeEntry(newFunctionNTrait(name.asTypeName)) else res } -- cgit v1.2.3