C#: Add/update tests and expected output.

This commit is contained in:
Michael Nebel
2026-03-20 13:01:46 +01:00
parent 51673312c5
commit 55516342b2
41 changed files with 605 additions and 886 deletions

View File

@@ -307,4 +307,10 @@ public class ContainerTest
{
Out(out var strings); // BAD: but allow for now (only C# 7 allows discards)
}
IList<int> TestNullcoalescingInitializations()
{
var l = new List<int> { 1, 2, 3 }; // GOOD: returned
return l ??= new List<int>();
}
}