diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-21 21:19:39 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-21 21:19:39 +0100 |
commit | 253396ba3933b3c1b5a91016ac3eb1fb90788a9d (patch) | |
tree | 9a72e9ba057b8812dda3577477fcdf7ae963da65 /modules/gdscript/tests/scripts/analyzer | |
parent | 31726fa945bb422d31bd363da1fd131652375433 (diff) | |
parent | 173101077485a6d4828a1600674de80946208100 (diff) |
Merge pull request #73693 from vnen/gdscript-fix-script-signature-check
GDScript: Fix override signature check of script inheritance
Diffstat (limited to 'modules/gdscript/tests/scripts/analyzer')
-rw-r--r-- | modules/gdscript/tests/scripts/analyzer/features/inheritance_signature_check_no_meta.gd | 10 | ||||
-rw-r--r-- | modules/gdscript/tests/scripts/analyzer/features/inheritance_signature_check_no_meta.out | 2 |
2 files changed, 12 insertions, 0 deletions
diff --git a/modules/gdscript/tests/scripts/analyzer/features/inheritance_signature_check_no_meta.gd b/modules/gdscript/tests/scripts/analyzer/features/inheritance_signature_check_no_meta.gd new file mode 100644 index 0000000000..6c056530f6 --- /dev/null +++ b/modules/gdscript/tests/scripts/analyzer/features/inheritance_signature_check_no_meta.gd @@ -0,0 +1,10 @@ +func test(): + print("ok") + +# https://github.com/godotengine/godot/issues/71994 +class A: + extends RefCounted +class B: + extends A + func duplicate(): + pass diff --git a/modules/gdscript/tests/scripts/analyzer/features/inheritance_signature_check_no_meta.out b/modules/gdscript/tests/scripts/analyzer/features/inheritance_signature_check_no_meta.out new file mode 100644 index 0000000000..1b47ed10dc --- /dev/null +++ b/modules/gdscript/tests/scripts/analyzer/features/inheritance_signature_check_no_meta.out @@ -0,0 +1,2 @@ +GDTEST_OK +ok |