Debian Codegraph @

modules/gdscript/tests/scripts/runtime/features/dictionaries_arent_shared.gd

raw
1 # https://github.com/godotengine/godot/issues/48121
2
3 func test():
4 var x := Dictionary()
5 var y := Dictionary()
6 y[0]=1
7 y[1]=1
8 y[2]=1
9 print("TEST OTHER DICTIONARY: " + str(len(x)))
10 x.clear()
11
12 x = Dictionary().duplicate()
13 y = Dictionary().duplicate()
14 y[0]=1
15 y[1]=1
16 y[2]=1
17 print("TEST OTHER DICTIONARY: " + str(len(x)))
18 x.clear()
19 return