@@ -278,7 +278,7 @@ class Setup extends PreRecheck, SymTransformer, SetupAPI:
278
278
paramInfos = tp.paramInfos.mapConserve(_.dropAllRetains.bounds),
279
279
resType = this (tp.resType))
280
280
case _ =>
281
- if ccConfig.followAliases then mapFollowingAliases(tp) else mapOver (tp)
281
+ mapFollowingAliases(tp)
282
282
addVar(addCaptureRefinements(normalizeCaptures(tp1)), ctx.owner)
283
283
end apply
284
284
end mapInferred
@@ -366,8 +366,7 @@ class Setup extends PreRecheck, SymTransformer, SetupAPI:
366
366
// Map references to capability classes C to C^
367
367
if t.derivesFromCapability && ! t.isSingleton && t.typeSymbol != defn.Caps_Exists
368
368
then CapturingType (t, defn.universalCSImpliedByCapability, boxed = false )
369
- else normalizeCaptures(
370
- if ccConfig.followAliases then mapFollowingAliases(t) else mapOver(t))
369
+ else normalizeCaptures(mapFollowingAliases(t))
371
370
end toCapturing
372
371
373
372
def fail (msg : Message ) =
@@ -857,8 +856,7 @@ class Setup extends PreRecheck, SymTransformer, SetupAPI:
857
856
case tp @ OrType (tp1, tp2 @ CapturingType (parent2, refs2)) =>
858
857
CapturingType (OrType (tp1, parent2, tp.isSoft), refs2, tp2.isBoxed)
859
858
case tp @ AppliedType (tycon, args)
860
- if ! defn.isFunctionClass(tp.dealias.typeSymbol)
861
- && (! ccConfig.followAliases || (tp.dealias eq tp)) =>
859
+ if ! defn.isFunctionClass(tp.dealias.typeSymbol) && (tp.dealias eq tp) =>
862
860
tp.derivedAppliedType(tycon, args.mapConserve(box))
863
861
case tp : RealTypeBounds =>
864
862
tp.derivedTypeBounds(tp.lo, box(tp.hi))
0 commit comments