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] =>
785
785
def tupleArgs (tree : Tree )(using Context ): List [Tree ] = tree match {
786
786
case Block (Nil , expr) => tupleArgs(expr)
787
787
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 &&
790
790
fn.symbol.owner.is(Module ) &&
791
791
defn.isTupleClass(fn.symbol.owner.companionClass) => args
792
792
case _ => Nil
Original file line number Diff line number Diff line change @@ -41,8 +41,8 @@ class FunctionXXLForwarders extends MiniPhase with IdentityDenotTransformer {
41
41
42
42
val forwarders =
43
43
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 ) &&
46
46
tree.symbol.signature.paramsSig.size > MaxImplementedFunctionArity &&
47
47
tree.symbol.allOverriddenSymbols.exists(sym => defn.isXXLFunctionClass(sym.owner))
48
48
}
You can’t perform that action at this time.
0 commit comments