Closed ZakharShkonda closed 6 years ago
ok. I understand the issue now. Problem is that PowerSLim converts nested loop into FOR ($script:b=0; $b -lt 2; $b++). And $script:b and $b are actually 2 different variables in this context. So second time we don't set $b to 0 actually. It remains being equal to 2.
For example, this test will fail:
$arr[2] and $arr[3] will be 0