Skip to content

Commit 58bf283

Browse files
committed
C#: Add suppress nullable warning expressions example.
1 parent 940e925 commit 58bf283

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

csharp/ql/test/library-tests/dataflow/global/GlobalDataFlow.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,12 @@ public void M9(string choice)
546546
Check(y.field);
547547
Check(z.field);
548548
}
549+
550+
public void M10(SimpleClass? sc)
551+
{
552+
TaintField(sc!);
553+
Check(sc.field);
554+
}
549555
}
550556

551557
static class IEnumerableExtensions

0 commit comments

Comments
 (0)