We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0742ba8 commit 7c0b163Copy full SHA for 7c0b163
compiler/src/dotty/tools/dotc/core/Definitions.scala
@@ -877,8 +877,7 @@ class Definitions {
877
val newDecls = new MutableScope(oldDecls) {
878
override def lookupEntry(name: Name)(implicit ctx: Context): ScopeEntry = {
879
val res = super.lookupEntry(name)
880
- if (res == null && name.isTypeName &&
881
- name.functionArity > maxImplemented(name))
+ if (res == null && name.isTypeName && name.functionArity > maxImplemented(name))
882
newScopeEntry(newFunctionNTrait(name.asTypeName))
883
else res
884
}
0 commit comments