diff options
author | kobewi <kobewi4e@gmail.com> | 2021-10-05 02:48:33 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2021-10-05 12:17:13 +0200 |
commit | 9e5fdbc79d4e6666f2ab184e7721e87c7411eb40 (patch) | |
tree | da124a91fd627b1f9adc2a26170104613661b45d /modules | |
parent | 2e8cba0bd9aba40d559368c7cfd01305000a5d00 (diff) |
Fix LUA-style assignment in Dictionary
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gdscript/tests/scripts/runtime/features/lua_assign.gd | 4 | ||||
-rw-r--r-- | modules/gdscript/tests/scripts/runtime/features/lua_assign.out | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/modules/gdscript/tests/scripts/runtime/features/lua_assign.gd b/modules/gdscript/tests/scripts/runtime/features/lua_assign.gd new file mode 100644 index 0000000000..c9b5f8481e --- /dev/null +++ b/modules/gdscript/tests/scripts/runtime/features/lua_assign.gd @@ -0,0 +1,4 @@ +func test(): + var dict = {} + dict.test = 1 + print(dict.test) diff --git a/modules/gdscript/tests/scripts/runtime/features/lua_assign.out b/modules/gdscript/tests/scripts/runtime/features/lua_assign.out new file mode 100644 index 0000000000..a7f1357bb2 --- /dev/null +++ b/modules/gdscript/tests/scripts/runtime/features/lua_assign.out @@ -0,0 +1,2 @@ +GDTEST_OK +1 |