-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
ike709
committed
Dec 8, 2024
1 parent
85efc53
commit 93d52ba
Showing
3 changed files
with
27 additions
and
6 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
Content.Tests/DMProject/Tests/Statements/For/reuse_decl_const2.dm
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,18 @@ | ||
// COMPILE ERROR OD0501 | ||
|
||
/datum | ||
var/const/idx = 0 | ||
var/c = 0 | ||
proc/do_loop() | ||
for (idx in list(1,2,3)) | ||
c += idx | ||
|
||
/proc/RunTest() | ||
var/datum/d = new | ||
d.do_loop() | ||
|
||
var/const/idx = 0 | ||
var/c = 0 | ||
for (idx in list(1,2,3)) | ||
c += idx | ||
|
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