File tree Expand file tree Collapse file tree 3 files changed +3
-7
lines changed
src/dotty/tools/dotc/core Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -735,15 +735,11 @@ object StdNames {
735
735
class ScalaTypeNames extends ScalaNames [TypeName ] {
736
736
protected implicit def fromString (s : String ): TypeName = typeName(s)
737
737
738
- def syntheticTypeParamName (i : Int ): TypeName = " T" + i
739
- def syntheticLambdaParamName (i : Int ): TypeName = " X" + i
738
+ def syntheticTypeParamName (i : Int ): TypeName = " X" + i
740
739
741
740
def syntheticTypeParamNames (num : Int ): List [TypeName ] =
742
741
(0 until num).map(syntheticTypeParamName)(breakOut)
743
742
744
- def syntheticLambdaParamNames (num : Int ): List [TypeName ] =
745
- (0 until num).map(syntheticLambdaParamName)(breakOut)
746
-
747
743
final val Conforms = encode(" <:<" )
748
744
749
745
final val Uninstantiated : TypeName = " ?$"
Original file line number Diff line number Diff line change @@ -1267,7 +1267,7 @@ class TypeComparer(initctx: Context) extends DotClass with ConstraintHandling {
1267
1267
original(tp1.appliedTo(tp1.typeParams.map(_.paramBoundsAsSeenFrom(tp1))), tp2)
1268
1268
else
1269
1269
PolyType (
1270
- paramNames = tpnme.syntheticLambdaParamNames (tparams1.length),
1270
+ paramNames = tpnme.syntheticTypeParamNames (tparams1.length),
1271
1271
variances = (tparams1, tparams2).zipped.map((tparam1, tparam2) =>
1272
1272
(tparam1.paramVariance + tparam2.paramVariance) / 2 ))(
1273
1273
paramBoundsExp = tl => (tparams1, tparams2).zipped.map((tparam1, tparam2) =>
Original file line number Diff line number Diff line change @@ -2623,7 +2623,7 @@ object Types {
2623
2623
Some ((tl.typeParams, tl.resType))
2624
2624
2625
2625
def any (n : Int )(implicit ctx : Context ) =
2626
- apply(tpnme.syntheticLambdaParamNames (n), List .fill(n)(0 ))(
2626
+ apply(tpnme.syntheticTypeParamNames (n), List .fill(n)(0 ))(
2627
2627
pt => List .fill(n)(TypeBounds .empty), pt => defn.AnyType )
2628
2628
}
2629
2629
You can’t perform that action at this time.
0 commit comments