diff options
author | Adam Scott <ascott.ca@gmail.com> | 2023-01-26 17:15:51 -0500 |
---|---|---|
committer | RĂ©mi Verschelde <rverschelde@gmail.com> | 2023-02-07 11:48:10 +0100 |
commit | 0fef203b1f39c3373f9f25b8e75e75f6b03f7c88 (patch) | |
tree | 586dadacddae2e031a65c5fd69eaaef9c65b2a22 /modules/gdscript/tests/scripts/parser/features | |
parent | 3f02cf7ced320f25ac5f4f72d7a57d98296bfcd1 (diff) |
Remove script class checks when getting function signature
Diffstat (limited to 'modules/gdscript/tests/scripts/parser/features')
-rw-r--r-- | modules/gdscript/tests/scripts/parser/features/super_class_check.gd | 13 | ||||
-rw-r--r-- | modules/gdscript/tests/scripts/parser/features/super_class_check.out | 1 |
2 files changed, 14 insertions, 0 deletions
diff --git a/modules/gdscript/tests/scripts/parser/features/super_class_check.gd b/modules/gdscript/tests/scripts/parser/features/super_class_check.gd new file mode 100644 index 0000000000..edfc45a8d8 --- /dev/null +++ b/modules/gdscript/tests/scripts/parser/features/super_class_check.gd @@ -0,0 +1,13 @@ +# 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 diff --git a/modules/gdscript/tests/scripts/parser/features/super_class_check.out b/modules/gdscript/tests/scripts/parser/features/super_class_check.out new file mode 100644 index 0000000000..d73c5eb7cd --- /dev/null +++ b/modules/gdscript/tests/scripts/parser/features/super_class_check.out @@ -0,0 +1 @@ +GDTEST_OK |