File tree Expand file tree Collapse file tree 2 files changed +13
-13
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -242,17 +242,17 @@ object Constants {
242242 new Constant (value,
243243 value match {
244244 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
256256 }
257257 )
258258
Original file line number Diff line number Diff line change @@ -798,7 +798,7 @@ trait ConstraintHandling {
798798 then constr.println(i " INIT*** $tl" )
799799 lower.forall(addOneBound(_, bounds.hi, isUpper = true )) &&
800800 upper.forall(addOneBound(_, bounds.lo, isUpper = false ))
801- case x =>
801+ case _ =>
802802 // Happens if param was already solved while processing earlier params of the same TypeLambda.
803803 // See #4720.
804804 true
@@ -844,7 +844,7 @@ trait ConstraintHandling {
844844 val approx = new ApproximatingTypeMap {
845845 if (! fromBelow) variance = - 1
846846 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 =>
848848 val bounds = tl.paramInfos(n)
849849 range(bounds.lo, bounds.hi)
850850 case tl : TypeLambda =>
You can’t perform that action at this time.
0 commit comments