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:
CalebJohn 2022-05-03 12:43:22 -07:00
parent 1b2992799b
commit 06a2d83e30
2 changed files with 16 additions and 0 deletions

View file

@ -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