From d93dbab054f677227a74d3cd7b20ad8af8d43398 Mon Sep 17 00:00:00 2001 From: "ocean (they/them)" Date: Thu, 15 Dec 2022 22:45:46 -0500 Subject: Add MethodInfo to signal datatype --- modules/gdscript/tests/scripts/analyzer/errors/assign_signal.gd | 4 ++++ modules/gdscript/tests/scripts/analyzer/errors/assign_signal.out | 2 ++ 2 files changed, 6 insertions(+) create mode 100644 modules/gdscript/tests/scripts/analyzer/errors/assign_signal.gd create mode 100644 modules/gdscript/tests/scripts/analyzer/errors/assign_signal.out (limited to 'modules/gdscript/tests/scripts/analyzer') diff --git a/modules/gdscript/tests/scripts/analyzer/errors/assign_signal.gd b/modules/gdscript/tests/scripts/analyzer/errors/assign_signal.gd new file mode 100644 index 0000000000..0e1f7256f8 --- /dev/null +++ b/modules/gdscript/tests/scripts/analyzer/errors/assign_signal.gd @@ -0,0 +1,4 @@ +signal your_base +signal my_base +func test(): + your_base = my_base diff --git a/modules/gdscript/tests/scripts/analyzer/errors/assign_signal.out b/modules/gdscript/tests/scripts/analyzer/errors/assign_signal.out new file mode 100644 index 0000000000..5275183da2 --- /dev/null +++ b/modules/gdscript/tests/scripts/analyzer/errors/assign_signal.out @@ -0,0 +1,2 @@ +GDTEST_ANALYZER_ERROR +Cannot assign a new value to a constant. -- cgit v1.2.3