C#: Update comments in test file to reflect fixed test output.

This commit is contained in:
Calum Grant
2019-12-23 11:01:06 +00:00
committed by Calum Grant
parent 359dea2c2b
commit d0d7ed620c

View File

@@ -208,14 +208,14 @@ abstract class TestNullableFlowStates
string InvocationTest(object? o)
{
var t = o?.GetType(); // Not null (incorrect - should be null maybe)
var t = o?.GetType(); // Maybe null
return t.ToString(); // Not null
}
void ElementTest(List<string>? list)
{
string? a = GetSelf()?.Field; // Not null (incorrect - should be null maybe)
string? b = list?[0]; // Not null (incorrect - should be null maybe)
string? a = GetSelf()?.Field; // Maybe null
string? b = list?[0]; // Maybe null
string c = list[0]; // Not null
string d = GetSelf().Field; // Not null
}