-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes strange behaviour when adding elements to arrays inside loops
Fixes #374
- Loading branch information
1 parent
14834c3
commit 6cb4a42
Showing
4 changed files
with
22 additions
and
1 deletion.
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
13 changes: 13 additions & 0 deletions
13
Starship/Rockstar.Test/programs/fixtures/arrays/rock-array-element-inside-loop.rock
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,13 @@ | ||
# https://github.com/RockstarLang/rockstar/issues/374 | ||
|
||
rock x1 "Sa" | ||
for y1 in 2 | ||
for z1 in x1+"tr" | ||
write roll z1 | ||
(writes: Stat) | ||
|
||
rock x2 "Sa" | ||
for y2 in 2 | ||
for z2 in x2+"tr"*1 | ||
write roll z2 | ||
(writes: Stat) |