File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/ast Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1346,11 +1346,11 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo {
1346
1346
def tupleTypeTree (elems : List [Tree ])(implicit ctx : Context ): Tree = {
1347
1347
val arity = elems.length
1348
1348
if (arity <= Definitions .MaxTupleArity && defn.TupleType (arity) != null ) AppliedTypeTree (TypeTree (defn.TupleType (arity)), elems)
1349
- else nestedPairsType (elems)
1349
+ else nestedPairsTypeTree (elems)
1350
1350
}
1351
1351
1352
1352
/** Creates the nested pairs type tree repesentation of the type trees in `ts` */
1353
- def nestedPairsType (ts : List [Tree ])(implicit ctx : Context ): Tree =
1353
+ def nestedPairsTypeTree (ts : List [Tree ])(implicit ctx : Context ): Tree =
1354
1354
ts.foldRight[Tree ](TypeTree (defn.UnitType ))((x, acc) => AppliedTypeTree (TypeTree (defn.PairType ), x :: acc :: Nil ))
1355
1355
1356
1356
/** Replaces all positions in `tree` with zero-extent positions */
You can’t perform that action at this time.
0 commit comments