Examples causing a compilation error:
for arr case .. in [1 2] => 1
[1 for arr case .. in [1 2]]
Working examples:
for arr case (.. in [1 2]) => 1
for arr when .. in [1 2] => 1
for n in a case n in [1 2] => 1
It seems that affected are only implicit for..in loops (for array) with guards with the in keyword inside and only when using case or | as a guard keyword, not when. Wrapping the guard's condition with parentheses also mitigates the issue.
Possibly related to #923 (#925).