diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-10-04 20:26:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-04 20:26:19 +0200 |
commit | 7fe0f4a426b8216d18e6b81e5c86b4f648a47b7c (patch) | |
tree | a4de22814f644aef438c30b65f66ee608e66f75c /modules/gdscript/tests/scripts | |
parent | 48768663d60eff7bd0358bdf01dc4b945d085634 (diff) | |
parent | 84956fee4bd83ef8af74efad7190fc4bbe161c5f (diff) |
Merge pull request #52914 from vnen/gdscript-assign-member-with-op
Diffstat (limited to 'modules/gdscript/tests/scripts')
-rw-r--r-- | modules/gdscript/tests/scripts/runtime/features/assign_member_with_operation.gd | 13 | ||||
-rw-r--r-- | modules/gdscript/tests/scripts/runtime/features/assign_member_with_operation.out | 5 |
2 files changed, 18 insertions, 0 deletions
diff --git a/modules/gdscript/tests/scripts/runtime/features/assign_member_with_operation.gd b/modules/gdscript/tests/scripts/runtime/features/assign_member_with_operation.gd new file mode 100644 index 0000000000..f6526aefb4 --- /dev/null +++ b/modules/gdscript/tests/scripts/runtime/features/assign_member_with_operation.gd @@ -0,0 +1,13 @@ +extends Node + +func test(): + process_priority = 10 + var change = 20 + + print(process_priority) + print(change) + + process_priority += change + + print(process_priority) + print(change) diff --git a/modules/gdscript/tests/scripts/runtime/features/assign_member_with_operation.out b/modules/gdscript/tests/scripts/runtime/features/assign_member_with_operation.out new file mode 100644 index 0000000000..c9e6b34c77 --- /dev/null +++ b/modules/gdscript/tests/scripts/runtime/features/assign_member_with_operation.out @@ -0,0 +1,5 @@ +GDTEST_OK +10 +20 +30 +20 |