We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fc0059 commit 7e669b7Copy full SHA for 7e669b7
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -3823,8 +3823,7 @@ object Types {
3823
myReduced =
3824
trace(i"reduce match type $this $hashCode", typr, show = true) {
3825
try
3826
- if (defn.isBottomType(scrutinee)) defn.NothingType
3827
- else typeComparer.matchCases(scrutinee, cases)(trackingCtx)
+ typeComparer.matchCases(scrutinee, cases)(trackingCtx)
3828
catch {
3829
case ex: Throwable =>
3830
handleRecursive("reduce type ", i"$scrutinee match ...", ex)
0 commit comments