summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests/scripts/analyzer/errors/overload_script_variable.gd
diff options
context:
space:
mode:
authorocean (they/them) <anvilfolk@gmail.com>2022-11-08 17:41:50 -0500
committerocean (they/them) <anvilfolk@gmail.com>2022-11-17 17:21:12 -0500
commit13be0ab733d83a494f3dbaedd94cc00d0dbe0d88 (patch)
tree7153dfd8c1cb9b216ad5753382a016bcbb2ea66e /modules/gdscript/tests/scripts/analyzer/errors/overload_script_variable.gd
parent2846ea1ffafddfc447036b37d255f72cb278b677 (diff)
downloadredot-engine-13be0ab733d83a494f3dbaedd94cc00d0dbe0d88.tar.gz
Fix ability to overload "script" variable
Diffstat (limited to 'modules/gdscript/tests/scripts/analyzer/errors/overload_script_variable.gd')
-rw-r--r--modules/gdscript/tests/scripts/analyzer/errors/overload_script_variable.gd6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/gdscript/tests/scripts/analyzer/errors/overload_script_variable.gd b/modules/gdscript/tests/scripts/analyzer/errors/overload_script_variable.gd
new file mode 100644
index 0000000000..5c8b9fa4ae
--- /dev/null
+++ b/modules/gdscript/tests/scripts/analyzer/errors/overload_script_variable.gd
@@ -0,0 +1,6 @@
+extends Node
+
+var script: int
+
+func test():
+ pass