From 5980abbcec3ffd6dcd189a4fcfd7b4b179187dbf Mon Sep 17 00:00:00 2001 From: Dmitrii Maganov Date: Wed, 28 Dec 2022 00:11:51 +0200 Subject: GDScript: Fix getting type from PropertyInfo for Variant arguments --- .../scripts/analyzer/features/variant_arg_in_virtual_method.gd | 6 ++++++ .../scripts/analyzer/features/variant_arg_in_virtual_method.out | 2 ++ 2 files changed, 8 insertions(+) create mode 100644 modules/gdscript/tests/scripts/analyzer/features/variant_arg_in_virtual_method.gd create mode 100644 modules/gdscript/tests/scripts/analyzer/features/variant_arg_in_virtual_method.out (limited to 'modules/gdscript/tests/scripts/analyzer/features') diff --git a/modules/gdscript/tests/scripts/analyzer/features/variant_arg_in_virtual_method.gd b/modules/gdscript/tests/scripts/analyzer/features/variant_arg_in_virtual_method.gd new file mode 100644 index 0000000000..da24c06b2e --- /dev/null +++ b/modules/gdscript/tests/scripts/analyzer/features/variant_arg_in_virtual_method.gd @@ -0,0 +1,6 @@ +class Check extends Node: + func _set(_property: StringName, _value: Variant) -> bool: + return true + +func test() -> void: + print('OK') diff --git a/modules/gdscript/tests/scripts/analyzer/features/variant_arg_in_virtual_method.out b/modules/gdscript/tests/scripts/analyzer/features/variant_arg_in_virtual_method.out new file mode 100644 index 0000000000..1ccb591560 --- /dev/null +++ b/modules/gdscript/tests/scripts/analyzer/features/variant_arg_in_virtual_method.out @@ -0,0 +1,2 @@ +GDTEST_OK +OK -- cgit v1.2.3