861743cd04
This PR does a small refactor of how method flags are handled in the GDScript analyzer. This way, it adds support for the analyzer to use any of MethodInfo's flags, where previously it could only use METHOD_FLAG_STATIC and METHOD_FLAG_VARARG. As a side-effect, this also normalizes behavior between editor and release templates, which fixes #76938. The tests added also brought a different issue to light, where using `super()` appears to generate a return variable discarded on calling super's _init(), which doesn't have a return value. This should be tackled in a different PR, which will have to change the output of this PR's tests.
11 lines
204 B
GDScript
11 lines
204 B
GDScript
class TestOne:
|
|
func _get_property_list():
|
|
return {}
|
|
|
|
class TestTwo extends TestOne:
|
|
func _init():
|
|
var _x = _get_property_list()
|
|
|
|
func test():
|
|
var x = TestTwo.new()
|
|
var _x = x._get_property_list()
|