GDScript compiler subclass bugfixes
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user