Revert "Remove script class checks when getting function signature"

This reverts commit 0fef203b1f.

This introduced some other issues, as discussed in #72144.
This commit is contained in:
Rémi Verschelde
2023-02-07 16:28:52 +01:00
parent bdad9770d6
commit 98921d8fba
13 changed files with 13 additions and 65 deletions

View File

@ -1,13 +0,0 @@
# https://github.com/godotengine/godot/issues/71994
func test():
pass
class A extends RefCounted:
pass
class B extends A:
# Parsing `duplicate()` here would throw this error:
# Parse Error: The function signature doesn't match the parent. Parent signature is "duplicate(bool = default) -> Resource".
func duplicate():
pass