You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
GDScript: Prevent constructing and inheriting engine singletons
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
func test():
|
||||
Time.new()
|
||||
@@ -0,0 +1,2 @@
|
||||
GDTEST_ANALYZER_ERROR
|
||||
Cannot construct native class "Time" because it is an engine singleton.
|
||||
@@ -0,0 +1,6 @@
|
||||
# GH-82081
|
||||
|
||||
extends Time
|
||||
|
||||
func test():
|
||||
pass
|
||||
@@ -0,0 +1,2 @@
|
||||
GDTEST_ANALYZER_ERROR
|
||||
Cannot inherit native class "Time" because it is an engine singleton.
|
||||
Reference in New Issue
Block a user