Merge pull request #79524 from aaronfranke/gds-test-inst-placeholder

Change GDScript tests to use InstancePlaceholder as the example abstract class
This commit is contained in:
Yuri Sizov 2023-07-21 17:15:32 +02:00
commit de0f7935dd
5 changed files with 6 additions and 6 deletions

View file

@ -1,2 +1,2 @@
func test():
CanvasItem.new()
InstancePlaceholder.new()

View file

@ -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.

View file

@ -1,4 +1,4 @@
class A extends CanvasItem:
class A extends InstancePlaceholder:
func _init():
print('no')

View file

@ -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".