Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
griggt committed Mar 6, 2022
1 parent 3c1e15e commit 9c26189
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
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.FilterNow
gen.checkMode == GenCheckMode.Ignore
|| isVarBinding(gen.pat)
|| isIrrefutable(gen.pat, gen.expr)

Expand Down
5 changes: 5 additions & 0 deletions compiler/test-resources/repl/i14626
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// scalac: -source:future
scala> for (a, b) <- List("a","b","c").lazyZip(List(1,2,3)) do println(s"$a$b")
a1
b2
c3

0 comments on commit 9c26189

Please sign in to comment.