summaryrefslogtreecommitdiff
path: root/modules/gdscript/tests/scripts/runtime/features/parameter_shadowing.out
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-12-06 10:58:08 +0100
committerRémi Verschelde <rverschelde@gmail.com>2022-12-06 10:58:08 +0100
commit95350d57e1919e7e5ee47a5ee897c81c70021141 (patch)
tree2c2050b9248a248548606618d581cea80ff2e170 /modules/gdscript/tests/scripts/runtime/features/parameter_shadowing.out
parente19ead8e37b8b7c69c5a2b89cc603588f146c34a (diff)
parent97280279ee45b628f9786548f6d7979836fd6ac5 (diff)
Merge pull request #69620 from vonagam/fix-param-shadow
Fix incomplete shadowing of member properties by parameters
Diffstat (limited to 'modules/gdscript/tests/scripts/runtime/features/parameter_shadowing.out')
-rw-r--r--modules/gdscript/tests/scripts/runtime/features/parameter_shadowing.out17
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/gdscript/tests/scripts/runtime/features/parameter_shadowing.out b/modules/gdscript/tests/scripts/runtime/features/parameter_shadowing.out
new file mode 100644
index 0000000000..5b981bc8bb
--- /dev/null
+++ b/modules/gdscript/tests/scripts/runtime/features/parameter_shadowing.out
@@ -0,0 +1,17 @@
+GDTEST_OK
+>> WARNING
+>> Line: 5
+>> SHADOWED_VARIABLE
+>> The local function parameter "a" is shadowing an already-declared variable at line 3.
+>> WARNING
+>> Line: 15
+>> SHADOWED_VARIABLE
+>> The local function parameter "v" is shadowing an already-declared variable at line 13.
+a
+1
+b
+1
+(1, 1)
+(0, 0)
+(6, 1)
+(0, 0)