Skip to content

Commit 27ed2c8

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 797928f commit 27ed2c8

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
@@ -1618,7 +1618,7 @@ object desugar {
16181618
if gen.checkMode == GenCheckMode.FilterAlways then // pattern was prefixed by `case`
16191619
false
16201620
else
1621-
gen.checkMode == GenCheckMode.Ignore
1621+
gen.checkMode != GenCheckMode.FilterNow
16221622
|| isVarBinding(gen.pat)
16231623
|| isIrrefutable(gen.pat, gen.expr)
16241624

compiler/test-resources/repl/i14626

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

0 commit comments

Comments
 (0)