File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -785,8 +785,8 @@ trait TypedTreeInfo extends TreeInfo[Type] { self: Trees.Instance[Type] =>
785785 def tupleArgs (tree : Tree )(using Context ): List [Tree ] = tree match {
786786 case Block (Nil , expr) => tupleArgs(expr)
787787 case Inlined (_, Nil , expr) => tupleArgs(expr)
788- case Apply (fn, args)
789- if fn.symbol. name == nme.apply &&
788+ case Apply (fn : NameTree , args)
789+ if fn.name == nme.apply &&
790790 fn.symbol.owner.is(Module ) &&
791791 defn.isTupleClass(fn.symbol.owner.companionClass) => args
792792 case _ => Nil
Original file line number Diff line number Diff line change @@ -41,8 +41,8 @@ class FunctionXXLForwarders extends MiniPhase with IdentityDenotTransformer {
4141
4242 val forwarders =
4343 for {
44- tree <- if (impl.symbol.owner.is(Trait )) Nil else impl.body
45- if tree.symbol.is( Method ) && tree.symbol.name == nme.apply &&
44+ ddef : DefDef <- if (impl.symbol.owner.is(Trait )) Nil else impl.body
45+ if ddef.name == nme.apply && tree.symbol.is( Method ) &&
4646 tree.symbol.signature.paramsSig.size > MaxImplementedFunctionArity &&
4747 tree.symbol.allOverriddenSymbols.exists(sym => defn.isXXLFunctionClass(sym.owner))
4848 }
You can’t perform that action at this time.
0 commit comments