File tree 2 files changed +2
-1
lines changed
compiler/src/dotty/tools/dotc
2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -814,6 +814,7 @@ class Definitions {
814
814
def TupleXXL_fromIterator (implicit ctx : Context ): Symbol = TupleXXLModule .requiredMethod(" fromIterator" )
815
815
816
816
lazy val DynamicTupleModule : Symbol = ctx.requiredModule(" scala.runtime.DynamicTuple" )
817
+ lazy val DynamicTupleModuleClass : Symbol = DynamicTupleModule .moduleClass
817
818
lazy val DynamicTuple_consIterator : Symbol = DynamicTupleModule .requiredMethod(" consIterator" )
818
819
lazy val DynamicTuple_concatIterator : Symbol = DynamicTupleModule .requiredMethod(" concatIterator" )
819
820
lazy val DynamicTuple_dynamicApply : Symbol = DynamicTupleModule .requiredMethod(" dynamicApply" )
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ class TupleOptimizations extends MiniPhase with IdentityDenotTransformer {
24
24
def phaseName : String = " genericTuples"
25
25
26
26
override def transformApply (tree : tpd.Apply )(implicit ctx : Context ): tpd.Tree = {
27
- if (! tree.symbol.exists || tree.symbol.owner != defn.DynamicTupleModule ) super .transformApply(tree)
27
+ if (! tree.symbol.exists || tree.symbol.owner != defn.DynamicTupleModuleClass ) super .transformApply(tree)
28
28
else if (tree.symbol == defn.DynamicTuple_dynamicCons ) transformTupleCons(tree)
29
29
else if (tree.symbol == defn.DynamicTuple_dynamicTail ) transformTupleTail(tree)
30
30
else if (tree.symbol == defn.DynamicTuple_dynamicSize ) transformTupleSize(tree)
You can’t perform that action at this time.
0 commit comments