File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
csharp/ql/test/query-tests/Nullness Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ public void AssertNotNullTest()
7474
7575 public void TestNull ( )
7676 {
77- object o = null ;
77+ object o = Maybe ( ) ? null : new object ( ) ;
7878 if ( IsNotNull ( o ) )
7979 o . ToString ( ) ; // GOOD
8080
Original file line number Diff line number Diff line change 3333| C.cs:45:22:45:30 | ... != ... | C.cs:45:22:45:22 | access to local variable s |
3434| C.cs:56:23:56:24 | access to local variable o2 | C.cs:56:23:56:24 | access to local variable o2 |
3535| C.cs:71:26:71:27 | access to local variable o3 | C.cs:71:26:71:27 | access to local variable o3 |
36+ | C.cs:78:13:78:24 | call to method IsNotNull | C.cs:78:23:78:23 | access to local variable o |
37+ | C.cs:81:14:81:22 | call to method IsNull | C.cs:81:21:81:21 | access to local variable o |
3638| C.cs:113:22:113:36 | ... == ... | C.cs:113:22:113:28 | access to local variable colours |
3739| C.cs:113:22:113:36 | ... == ... | C.cs:113:33:113:36 | null |
3840| C.cs:120:13:120:28 | ... == ... | C.cs:120:13:120:20 | access to local variable children |
You can’t perform that action at this time.
0 commit comments