File tree 1 file changed +3
-3
lines changed
compiler/src/dotty/tools/dotc/core
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1046,7 +1046,7 @@ object Types {
1046
1046
* is approximated by constraining `A` to be =:= to `Int` and returning `ArrayBuffer[Int]`
1047
1047
* instead of `ArrayBuffer[_ >: Int | A <: Int & A]`
1048
1048
*/
1049
- def widenUnion (implicit ctx : Context ): Type = this match {
1049
+ def widenUnion (implicit ctx : Context ): Type = widen match {
1050
1050
case OrType (tp1, tp2) =>
1051
1051
ctx.typeComparer.lub(tp1.widenUnion, tp2.widenUnion, canConstrain = true ) match {
1052
1052
case union : OrType => union.join
@@ -1058,8 +1058,8 @@ object Types {
1058
1058
tp.derivedRefinedType(tp.parent.widenUnion, tp.refinedName, tp.refinedInfo)
1059
1059
case tp : RecType =>
1060
1060
tp.rebind(tp.parent.widenUnion)
1061
- case _ =>
1062
- this
1061
+ case tp =>
1062
+ tp
1063
1063
}
1064
1064
1065
1065
private def dealias1 (keep : AnnotatedType => Context => Boolean )(implicit ctx : Context ): Type = this match {
You can’t perform that action at this time.
0 commit comments