Skip to content

Commit 8ae089a

Browse files
committed
Revert "fix scala#14626"
Scratch that, it was causing the desugaring to include a withFilter which I believe is undesirable here. This reverts commit 9c26189.
1 parent 9c26189 commit 8ae089a

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

compiler/src/dotty/tools/dotc/ast/Desugar.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1582,7 +1582,7 @@ object desugar {
15821582
if gen.checkMode == GenCheckMode.FilterAlways then // pattern was prefixed by `case`
15831583
false
15841584
else
1585-
gen.checkMode == GenCheckMode.Ignore
1585+
gen.checkMode != GenCheckMode.FilterNow
15861586
|| isVarBinding(gen.pat)
15871587
|| isIrrefutable(gen.pat, gen.expr)
15881588

compiler/test-resources/repl/i14626

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)