Add regression test for gdscript valid function signature
Previously, there was an issue where the gdscript analyzer incorrectly riased a validation error for code that had a default Dictionary, Array, or custom type.
This commit is contained in:
parent
1b2992799b
commit
06a2d83e30
2 changed files with 16 additions and 0 deletions
|
@ -0,0 +1,14 @@
|
|||
func test():
|
||||
var instance := Parent.new()
|
||||
instance.my_function({"a": 1})
|
||||
instance = Child.new()
|
||||
instance.my_function({"a": 1})
|
||||
print("No failure")
|
||||
|
||||
class Parent:
|
||||
func my_function(_par1: Dictionary = {}) -> void:
|
||||
pass
|
||||
|
||||
class Child extends Parent:
|
||||
func my_function(_par1: Dictionary = {}) -> void:
|
||||
pass
|
|
@ -0,0 +1,2 @@
|
|||
GDTEST_OK
|
||||
No failure
|
Loading…
Reference in a new issue