godot/modules/gdscript/tests/scripts/parser/features/nested_dictionary.gd

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
268 B
GDScript3
Raw Normal View History

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"])