Skip to content

Commit 9e6eb0e

Browse files
committed
Fix: Initialize fields with non-null default values
1 parent 074744f commit 9e6eb0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Benchmarks.CodeOfChaos.Extensions/SpanLINQ/InVsScopedBenchmarks.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ public class InVsScopedVsRefVsRefReadonlyBenchmarks {
1818

1919
// Parameter for match scenarios
2020
[ParamsSource(nameof(MatchScenarios))]
21-
public MatchScenario Scenario { get; set; }
21+
public MatchScenario Scenario { get; set; } = null!;
2222

23-
private int[] _data;
23+
private int[] _data = null!;
2424

2525
[GlobalSetup]
2626
public void Setup() {

0 commit comments

Comments
 (0)