Address todos relating to init-only usages

This commit is contained in:
Joseph Madamba
2023-02-08 17:51:28 -08:00
parent 2873905cc6
commit f1decb667e
4 changed files with 16 additions and 21 deletions

View File

@ -20,8 +20,7 @@ namespace osu.Game.Tests.Visual
/// <summary>
/// The dependencies provided to the children.
/// </summary>
// TODO: should be an init-only property when C# 9
public (Type, object)[] CachedDependencies { get; set; } = Array.Empty<(Type, object)>();
public (Type, object)[] CachedDependencies { get; init; } = Array.Empty<(Type, object)>();
protected override IReadOnlyDependencyContainer CreateChildDependencies(IReadOnlyDependencyContainer parent)
{