virtualx-engine/modules/gdscript/tests/scripts/parser/features/nested_dictionary.gd
Hugo Locurcio c0083c0f90
Add dozens of new integration tests to the GDScript test suite
This also ignores `.out` files in the file format static checks.
2021-09-14 18:42:08 +02:00

6 lines
268 B
GDScript

func test():
var dictionary = {1: {2: {3: {4: {5: {6: {7: {8: {"key": "value"}}}}}}}}}
print(dictionary[1][2][3][4][5][6][7])
print(dictionary[1][2][3][4][5][6][7][8])
print(dictionary[1][2][3][4][5][6][7][8].key)
print(dictionary[1][2][3][4][5][6][7][8]["key"])