summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests/scripts/analyzer/warnings/confusable_local_usage.gd
diff options
context:
space:
mode:
authorYuri Sizov <yuris@humnom.net>2023-07-31 21:01:36 +0200
committerYuri Sizov <yuris@humnom.net>2023-07-31 21:01:36 +0200
commit3de7dd902c3b491b92cad822eb1ce7018001c24b (patch)
tree29ac72747d9bb8ac089ad7a05842676861e97901 /modules/gdscript/tests/scripts/analyzer/warnings/confusable_local_usage.gd
parent8b12849fef2059421583e4e5bf2a27f654d8ab42 (diff)
parentd53fc92b4c6b5e4484e8f0bfff6ac55163dde3fb (diff)
downloadredot-engine-3de7dd902c3b491b92cad822eb1ce7018001c24b.tar.gz
Merge pull request #79880 from dalexeev/gds-fix-id-shadowing-below
GDScript: Fix bug with identifier shadowed below in current scope
Diffstat (limited to 'modules/gdscript/tests/scripts/analyzer/warnings/confusable_local_usage.gd')
-rw-r--r--modules/gdscript/tests/scripts/analyzer/warnings/confusable_local_usage.gd6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/gdscript/tests/scripts/analyzer/warnings/confusable_local_usage.gd b/modules/gdscript/tests/scripts/analyzer/warnings/confusable_local_usage.gd
new file mode 100644
index 0000000000..4462c067bc
--- /dev/null
+++ b/modules/gdscript/tests/scripts/analyzer/warnings/confusable_local_usage.gd
@@ -0,0 +1,6 @@
+var a = 1
+
+func test():
+ print(a)
+ var a = 2
+ print(a)