Skip to content

Commit d0d7ed6

Browse files
committed
C#: Update comments in test file to reflect fixed test output.
1 parent 359dea2 commit d0d7ed6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

csharp/ql/test/library-tests/csharp8/NullableRefTypes.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,14 +208,14 @@ void ExceptionFlow()
208208

209209
string InvocationTest(object? o)
210210
{
211-
var t = o?.GetType(); // Not null (incorrect - should be null maybe)
211+
var t = o?.GetType(); // Maybe null
212212
return t.ToString(); // Not null
213213
}
214214

215215
void ElementTest(List<string>? list)
216216
{
217-
string? a = GetSelf()?.Field; // Not null (incorrect - should be null maybe)
218-
string? b = list?[0]; // Not null (incorrect - should be null maybe)
217+
string? a = GetSelf()?.Field; // Maybe null
218+
string? b = list?[0]; // Maybe null
219219
string c = list[0]; // Not null
220220
string d = GetSelf().Field; // Not null
221221
}

0 commit comments

Comments
 (0)