1 // lifted null binary operators
7 public static int Main ()
10 v
= (true & null) == null;
14 v
= (false & null) != null;
18 v
= (null & true) == null;
22 v
= (null & false) != null;
26 v
= (true | null) == null;
30 v
= (false | null) != null;
34 v
= (null | true) == null;
38 v
= (null | false) != null;
42 v
= (null & 1) == null;
46 v
= (null & 0) != null;
53 if ((a
& null) != false)
56 if ((b
& null) != null)
59 if ((null & a
) != false)
62 if ((null & b
) != null)
65 if ((a
& true) != false)
68 if ((true & a
) != false)
71 if ((a
| null) != null)
74 if ((b
| null) != true)
77 if ((null | a
) != null)
80 if ((null | b
) != true)
83 if ((a
| true) != true)
86 if ((true | a
) != true)
90 if ((b4
& null) != null)
93 if ((null & b4
) != null)
96 if ((b4
| null) != true)
99 if ((null | b4
) != true)
116 if (res
.Value
!= false)
124 if (res
.Value
!= true)
134 // This does not look right but C# spec needs tidying up to special case it
135 void BrokenLiftedNull ()