mirror of
https://github.com/github/codeql.git
synced 2026-04-25 08:45:14 +02:00
C#: Update comments in test file to reflect fixed test output.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user