summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests/scripts/analyzer/errors/extend_engine_singleton.gd
diff options
context:
space:
mode:
authorDanil Alexeev <danil@alexeev.xyz>2023-09-22 10:10:22 +0300
committerDanil Alexeev <danil@alexeev.xyz>2023-09-22 17:30:00 +0300
commit10b00bc2eaa5d6e49ed68eb5eb832abfdeff5f1a (patch)
tree2bb1dd0056fe26cfff5bb32cc9a620ebb75be22e /modules/gdscript/tests/scripts/analyzer/errors/extend_engine_singleton.gd
parentfe5b1c8d49313d63fbe91cb7cdf463e10fb86afa (diff)
downloadredot-engine-10b00bc2eaa5d6e49ed68eb5eb832abfdeff5f1a.tar.gz
GDScript: Prevent constructing and inheriting engine singletons
Diffstat (limited to 'modules/gdscript/tests/scripts/analyzer/errors/extend_engine_singleton.gd')
-rw-r--r--modules/gdscript/tests/scripts/analyzer/errors/extend_engine_singleton.gd6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/gdscript/tests/scripts/analyzer/errors/extend_engine_singleton.gd b/modules/gdscript/tests/scripts/analyzer/errors/extend_engine_singleton.gd
new file mode 100644
index 0000000000..a46b6d8658
--- /dev/null
+++ b/modules/gdscript/tests/scripts/analyzer/errors/extend_engine_singleton.gd
@@ -0,0 +1,6 @@
+# GH-82081
+
+extends Time
+
+func test():
+ pass