-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
store and output LocationOfOverwrite
- Loading branch information
1 parent
67240c5
commit b53746c
Showing
8 changed files
with
35 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
tests/regression/astdumptest/include-overwrite-main2-expected.ast
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
//Description("this works as intuitively expected") | ||
//Parameter("") | ||
overwriteFalse = false; | ||
after = overwriteFalse; | ||
before = overwriteTrue; | ||
//Description("this causes 'before' to be undef") | ||
//Parameter("") | ||
overwriteTrue = true; | ||
echo("after"); | ||
echo(after = after); | ||
echo("before"); | ||
echo(before = before); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
a = assert(b); | ||
//Parameter("") | ||
b = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
WARNING: a was assigned on line 2 but was overwritten in file variable-overwrite.scad, line 4 | ||
WARNING: Ignoring unknown variable 'b' in file variable-overwrite.scad, line 4 | ||
ERROR: Assertion 'b' failed in file variable-overwrite.scad, line 4 | ||
TRACE: overwritten assignment to 'a' (this is where the assignment is evaluated) in file variable-overwrite.scad, line 2 | ||
TRACE: overwritting assignment to 'a' in file variable-overwrite.scad, line 4 |