Added scope and reassignment tests

epec-fast
Marius Kintel 2013-06-13 01:27:19 -04:00
parent 4280ebe7d3
commit e76a41a346
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
// Test reassignment where another variable has used the previous
// value before the reassignment. This could get messed up if order of
// assignment evaluation changes
myval = 2;
i = myval;
myval = 3;
echo(myval, i); // Should output 3, 2