From e76a41a34672385eb0f8e69e95c932a565cc2bc2 Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Thu, 13 Jun 2013 01:27:19 -0400 Subject: Added scope and reassignment tests diff --git a/testdata/scad/misc/value-reassignment-tests2.scad b/testdata/scad/misc/value-reassignment-tests2.scad new file mode 100644 index 0000000..9d7cf50 --- /dev/null +++ b/testdata/scad/misc/value-reassignment-tests2.scad @@ -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 + -- cgit v0.10.1