GDScript compiler subclass bugfixes

This commit is contained in:
Rune
2022-11-08 03:51:20 -08:00
parent e25d9281d4
commit bce6f1792e
14 changed files with 286 additions and 284 deletions
@@ -461,7 +461,6 @@ GDScriptTest::TestResult GDScriptTest::execute_test_code(bool p_is_generating) {
Ref<GDScript> script;
script.instantiate();
script->set_path(source_file);
script->set_script_path(source_file);
err = script->load_source_code(source_file);
if (err != OK) {
enable_stdout();
@@ -0,0 +1,4 @@
extends "inner_base.gd".InnerA.InnerAB
func test():
super.test()
@@ -0,0 +1,3 @@
GDTEST_OK
InnerA.InnerAB.test
InnerB.test
@@ -0,0 +1,18 @@
extends InnerA
func test():
super.test()
class InnerA extends InnerAB:
func test():
print("InnerA.test")
super.test()
class InnerAB extends InnerB:
func test():
print("InnerA.InnerAB.test")
super.test()
class InnerB:
func test():
print("InnerB.test")
@@ -0,0 +1,4 @@
GDTEST_OK
InnerA.test
InnerA.InnerAB.test
InnerB.test