Use 'new' expression in places where the type is evident for the engine (#1415)

Co-authored-by: Pieter-Jan Briers <pieterjan.briers+git@gmail.com>
This commit is contained in:
DrSmugleaf
2020-11-26 00:16:55 +01:00
committed by GitHub
co-authored by Pieter-Jan Briers
parent e82a83223f
commit b8e5b47e7a
242 changed files with 1171 additions and 1174 deletions
@@ -104,10 +104,10 @@ namespace Robust.Client.ViewVariables
[ViewVariables(VVAccess.ReadWrite)] private int x = 10;
[ViewVariables]
public Dictionary<object, object> Dict => new Dictionary<object, object> {{"a", "b"}, {"c", "d"}};
public Dictionary<object, object> Dict => new() {{"a", "b"}, {"c", "d"}};
[ViewVariables]
public List<object> List => new List<object> {1, 2, 3, 4, 5, 6, 7, 8, 9, x, 11, 12, 13, 14, 15, this};
public List<object> List => new() {1, 2, 3, 4, 5, 6, 7, 8, 9, x, 11, 12, 13, 14, 15, this};
[ViewVariables] private Vector2 Vector = (50, 50);