File tree 3 files changed +2
-8
lines changed
compiler/src/dotty/tools/dotc 3 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -1020,12 +1020,6 @@ object Types {
1020
1020
case _ => this
1021
1021
}
1022
1022
1023
- /** Widen singleton type modulo constant types */
1024
- final def widenNonConstant (implicit ctx : Context ): Type = this match {
1025
- case _ : ConstantType => this
1026
- case _ => widen
1027
- }
1028
-
1029
1023
/** Widen type if it is unstable (i.e. an ExprType, or TermRef to unstable symbol */
1030
1024
final def widenIfUnstable (implicit ctx : Context ): Type = stripTypeVar match {
1031
1025
case tp : ExprType => tp.resultType.widenIfUnstable
Original file line number Diff line number Diff line change @@ -725,7 +725,7 @@ class SpaceEngine(implicit ctx: Context) extends SpaceLogic {
725
725
726
726
def checkExhaustivity (_match : Match ): Unit = {
727
727
val Match (sel, cases) = _match
728
- val selTyp = sel.tpe.widenNonConstant .dealias
728
+ val selTyp = sel.tpe.widen .dealias
729
729
730
730
if (! exhaustivityCheckable(sel)) return
731
731
@@ -756,7 +756,7 @@ class SpaceEngine(implicit ctx: Context) extends SpaceLogic {
756
756
757
757
def checkRedundancy (_match : Match ): Unit = {
758
758
val Match (sel, cases) = _match
759
- val selTyp = sel.tpe.widenNonConstant .dealias
759
+ val selTyp = sel.tpe.widen .dealias
760
760
761
761
if (! redundancyCheckable(sel)) return
762
762
File renamed without changes.
You can’t perform that action at this time.
0 commit comments