summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests/scripts/analyzer/warnings/confusable_local_usage_initializer.out
diff options
context:
space:
mode:
authorDanil Alexeev <danil@alexeev.xyz>2023-07-25 14:21:49 +0300
committerDanil Alexeev <danil@alexeev.xyz>2023-07-26 11:26:57 +0300
commitd53fc92b4c6b5e4484e8f0bfff6ac55163dde3fb (patch)
tree490be96fed93ec987f093dd4bca15ab6f85bcf57 /modules/gdscript/tests/scripts/analyzer/warnings/confusable_local_usage_initializer.out
parent202e4b2c1e7f8b25738b93d0e4d5066453d3edf3 (diff)
downloadredot-engine-d53fc92b4c6b5e4484e8f0bfff6ac55163dde3fb.tar.gz
GDScript: Fix bug with identifier shadowed below in current scope
Diffstat (limited to 'modules/gdscript/tests/scripts/analyzer/warnings/confusable_local_usage_initializer.out')
-rw-r--r--modules/gdscript/tests/scripts/analyzer/warnings/confusable_local_usage_initializer.out15
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/gdscript/tests/scripts/analyzer/warnings/confusable_local_usage_initializer.out b/modules/gdscript/tests/scripts/analyzer/warnings/confusable_local_usage_initializer.out
new file mode 100644
index 0000000000..228a510490
--- /dev/null
+++ b/modules/gdscript/tests/scripts/analyzer/warnings/confusable_local_usage_initializer.out
@@ -0,0 +1,15 @@
+GDTEST_OK
+>> WARNING
+>> Line: 4
+>> CONFUSABLE_LOCAL_USAGE
+>> The identifier "a" will be shadowed below in the block.
+>> WARNING
+>> Line: 5
+>> CONFUSABLE_LOCAL_USAGE
+>> The identifier "a" will be shadowed below in the block.
+>> WARNING
+>> Line: 5
+>> SHADOWED_VARIABLE
+>> The local variable "a" is shadowing an already-declared variable at line 1.
+1
+2