-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Partial fix for #133 ("treat X as block-scoped" will now help)
- Loading branch information
1 parent
f3c02cb
commit 3e333af
Showing
4 changed files
with
43 additions
and
2 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
...S23/scripts/v_constructor_function_redefinitions/v_constructor_function_redefinitions.gml
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,20 @@ | ||
function v_constructor_function_redefinitions() constructor { | ||
static f1 = function() { | ||
let v = 0; | ||
v += 1; | ||
v += ""; ///want_warn | ||
array_push(v, 1); ///want_warn | ||
} | ||
static f2 = function() { | ||
let v = "hi!"; | ||
v += 1; ///want_warn | ||
v += ""; | ||
array_push(v, 1); ///want_warn | ||
} | ||
static f3 = function() { | ||
let v = []; | ||
v += 1; ///want_warn | ||
v += ""; ///want_warn | ||
array_push(v, 1); | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...MS23/scripts/v_constructor_function_redefinitions/v_constructor_function_redefinitions.yy
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.