mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Change GDScript tests to use InstancePlaceholder as the example abstract
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
func test():
|
||||
CanvasItem.new()
|
||||
InstancePlaceholder.new()
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
GDTEST_ANALYZER_ERROR
|
||||
Native class "CanvasItem" cannot be constructed as it is abstract.
|
||||
Native class "InstancePlaceholder" cannot be constructed as it is abstract.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class A extends CanvasItem:
|
||||
class A extends InstancePlaceholder:
|
||||
func _init():
|
||||
print('no')
|
||||
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
GDTEST_ANALYZER_ERROR
|
||||
Class "abstract_script_instantiate.gd::B" cannot be constructed as it is based on abstract native class "CanvasItem".
|
||||
Class "abstract_script_instantiate.gd::B" cannot be constructed as it is based on abstract native class "InstancePlaceholder".
|
||||
|
||||
Reference in New Issue
Block a user