Skip to content

Commit 7e669b7

Browse files
Don't special case bottom
1 parent 1fc0059 commit 7e669b7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/src/dotty/tools/dotc/core/Types.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3823,8 +3823,7 @@ object Types {
38233823
myReduced =
38243824
trace(i"reduce match type $this $hashCode", typr, show = true) {
38253825
try
3826-
if (defn.isBottomType(scrutinee)) defn.NothingType
3827-
else typeComparer.matchCases(scrutinee, cases)(trackingCtx)
3826+
typeComparer.matchCases(scrutinee, cases)(trackingCtx)
38283827
catch {
38293828
case ex: Throwable =>
38303829
handleRecursive("reduce type ", i"$scrutinee match ...", ex)

0 commit comments

Comments
 (0)