mirror of https://github.com/vitalif/openscad
Added scope and reassignment tests
parent
4280ebe7d3
commit
e76a41a346
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue