GDScript: Prevent constructing and inheriting engine singletons
This commit is contained in:
parent
fe5b1c8d49
commit
10b00bc2ea
5 changed files with 22 additions and 0 deletions
|
|
@ -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.
|
||||
Loading…
Add table
Add a link
Reference in a new issue