Merge pull request #77351 from anvilfolk/super-discard
GDScript: do not RETURN_VALUE_DISCARDED for `super()` inside `_init()`
This commit is contained in:
commit
3a319daa99
3 changed files with 14 additions and 2 deletions
|
|
@ -0,0 +1,10 @@
|
|||
class TestOne:
|
||||
func _init():
|
||||
pass
|
||||
|
||||
class TestTwo extends TestOne:
|
||||
func _init():
|
||||
super()
|
||||
|
||||
func test():
|
||||
pass
|
||||
|
|
@ -0,0 +1 @@
|
|||
GDTEST_OK
|
||||
Loading…
Add table
Add a link
Reference in a new issue