OverviewFilesCommitsIssuesDocsReleasesPeers

nvidia-rtx-godot / modules / gdscript / tests / scripts / analyzer / errors / dictionary_duplicate_key.gd

17 lines · gd ref:
func test():
	var lua_dict = {
		a = 1,
		b = 2,
		a = 3, # Duplicate isn't allowed.
	}
	var lua_dict_with_string = {
		a = 1,
		b = 2,
		"a" = 3, # Duplicate isn't allowed.
	}
	var python_dict = {
		"a": 1,
		"b": 2,
		"a": 3, # Duplicate isn't allowed.
	}