konstantinvlasenko / PowerSlim

Fitnesse Slim implementation in PowerShell. PowerSlim makes it possible to use PowerShell in the acceptance testing
powerslim.org
GNU General Public License v3.0
48 stars 21 forks source link

+= does not work as expected #47

Closed mikeplavsky closed 11 years ago

mikeplavsky commented 11 years ago

|script| | eval | $b = 0; $c = 0 | | show | eval | $b = 5; $b; $c += 5; $c | 5,5 | | show | eval | $b; $c | 5,0 |

Finally $c should be 5 The cause of the issue is $c += is treated as a new local variable.