File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
compiler/src/dotty/tools/dotc/ast Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -185,11 +185,11 @@ class TreeTypeMap(
185185 * and mapped symbols `mapped`. Also goes into mapped classes
186186 * and substitutes their declarations.
187187 */
188- def withMappedSyms (syms : List [Symbol ], mapped : List [Symbol ]): TreeTypeMap = {
188+ def withMappedSyms (syms : List [Symbol ], mapped : List [Symbol ]): TreeTypeMap =
189189 val symsChanged = syms ne mapped
190190 val substMap = withSubstitution(syms, mapped)
191191 lazy val origCls = mapped.zip(syms).filter(_._1.isClass).toMap
192- val fullMap = mapped.filter(_.isClass).foldLeft(substMap) { (tmap, cls) =>
192+ mapped.filter(_.isClass).foldLeft(substMap) { (tmap, cls) =>
193193 val origDcls = cls.info.decls.toList.filterNot(_.is(TypeParam ))
194194 val mappedDcls = mapSymbols(origDcls, tmap)
195195 val tmap1 = tmap.withMappedSyms(
@@ -199,7 +199,4 @@ class TreeTypeMap(
199199 origDcls.lazyZip(mappedDcls).foreach(cls.asClass.replace)
200200 tmap1
201201 }
202- if symsChanged || (fullMap eq substMap) then fullMap
203- else withMappedSyms(syms, mapAlways = true )
204- }
205202}
You can’t perform that action at this time.
0 commit comments