Skip to content

Commit

Permalink
Revert "fix scala#14626"
Browse files Browse the repository at this point in the history
Scratch that, it was causing the desugaring to include a withFilter
which I believe is undesirable here.

This reverts commit 9c26189.
  • Loading branch information
griggt committed Mar 7, 2022
1 parent 9c26189 commit 8ae089a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/ast/Desugar.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1582,7 +1582,7 @@ object desugar {
if gen.checkMode == GenCheckMode.FilterAlways then // pattern was prefixed by `case`
false
else
gen.checkMode == GenCheckMode.Ignore
gen.checkMode != GenCheckMode.FilterNow
|| isVarBinding(gen.pat)
|| isIrrefutable(gen.pat, gen.expr)

Expand Down
5 changes: 0 additions & 5 deletions compiler/test-resources/repl/i14626

This file was deleted.

0 comments on commit 8ae089a

Please sign in to comment.