Merge pull request #60732 from CalebJohn/matching_signature_regression_test

This commit is contained in:
Rémi Verschelde 2022-05-11 14:15:48 +02:00 committed by GitHub
commit 505e15c523
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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