diff options
author | Martin Odersky <odersky@gmail.com> | 2016-12-17 19:01:25 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-12-17 19:01:25 +0100 |
commit | 7c0b16378dccc1c2da17de0c3506fb6fceb3e9d2 (patch) | |
tree | 8469c46420a7b99ef2a68726ee75eda8e11395d9 /compiler/src/dotty/tools/dotc/core/Definitions.scala | |
parent | 0742ba8e91b098b10529972bf5b630c98a5a882b (diff) | |
download | dotty-7c0b16378dccc1c2da17de0c3506fb6fceb3e9d2.tar.gz dotty-7c0b16378dccc1c2da17de0c3506fb6fceb3e9d2.tar.bz2 dotty-7c0b16378dccc1c2da17de0c3506fb6fceb3e9d2.zip |
Fix formatting
Diffstat (limited to 'compiler/src/dotty/tools/dotc/core/Definitions.scala')
-rw-r--r-- | compiler/src/dotty/tools/dotc/core/Definitions.scala | 3 |
1 files changed, 1 insertions, 2 deletions
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 } |