File tree 2 files changed +13
-13
lines changed
compiler/src/dotty/tools/dotc/core
2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -242,17 +242,17 @@ object Constants {
242
242
new Constant (value,
243
243
value match {
244
244
case null => NullTag
245
- case x : Unit => UnitTag
246
- case x : Boolean => BooleanTag
247
- case x : Byte => ByteTag
248
- case x : Short => ShortTag
249
- case x : Int => IntTag
250
- case x : Long => LongTag
251
- case x : Float => FloatTag
252
- case x : Double => DoubleTag
253
- case x : String => StringTag
254
- case x : Char => CharTag
255
- case x : Type => ClazzTag
245
+ case _ : Unit => UnitTag
246
+ case _ : Boolean => BooleanTag
247
+ case _ : Byte => ByteTag
248
+ case _ : Short => ShortTag
249
+ case _ : Int => IntTag
250
+ case _ : Long => LongTag
251
+ case _ : Float => FloatTag
252
+ case _ : Double => DoubleTag
253
+ case _ : String => StringTag
254
+ case _ : Char => CharTag
255
+ case _ : Type => ClazzTag
256
256
}
257
257
)
258
258
Original file line number Diff line number Diff line change @@ -798,7 +798,7 @@ trait ConstraintHandling {
798
798
then constr.println(i " INIT*** $tl" )
799
799
lower.forall(addOneBound(_, bounds.hi, isUpper = true )) &&
800
800
upper.forall(addOneBound(_, bounds.lo, isUpper = false ))
801
- case x =>
801
+ case _ =>
802
802
// Happens if param was already solved while processing earlier params of the same TypeLambda.
803
803
// See #4720.
804
804
true
@@ -844,7 +844,7 @@ trait ConstraintHandling {
844
844
val approx = new ApproximatingTypeMap {
845
845
if (! fromBelow) variance = - 1
846
846
def apply (t : Type ): Type = t match {
847
- case t @ TypeParamRef (tl : TypeLambda , n) if comparedTypeLambdas contains tl =>
847
+ case TypeParamRef (tl : TypeLambda , n) if comparedTypeLambdas contains tl =>
848
848
val bounds = tl.paramInfos(n)
849
849
range(bounds.lo, bounds.hi)
850
850
case tl : TypeLambda =>
You can’t perform that action at this time.
0 commit comments