diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-12-22 16:02:11 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-12-22 16:02:11 +0100 |
commit | 801ef6614db18969d2384e2045827996ed005cde (patch) | |
tree | 2c8d9edab5ca405123732ae1e405aa18ac8197f2 /modules/gdscript/tests/scripts | |
parent | 866df52f4914a0ddd2c3ab5cc7d0d6520ba06b71 (diff) | |
parent | d93dbab054f677227a74d3cd7b20ad8af8d43398 (diff) |
Merge pull request #70138 from anvilfolk/signals
Add MethodInfo to signal datatype
Diffstat (limited to 'modules/gdscript/tests/scripts')
-rw-r--r-- | modules/gdscript/tests/scripts/analyzer/errors/assign_signal.gd | 4 | ||||
-rw-r--r-- | modules/gdscript/tests/scripts/analyzer/errors/assign_signal.out | 2 |
2 files changed, 6 insertions, 0 deletions
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. |