Take stars out of types where they make more sense.
[mono-project.git] / mcs / tests / gtest-211.cs
blob3ab516ede8dc95020d6f1b3a7d85ba3fa54e0e98
1 class MyTest {
2 static void f (bool a, bool b)
4 if (a != b)
5 throw new System.Exception ("Something wrong: " + a + " vs. " + b);
7 public static void Main()
9 int? w = null;
10 int? x = null;
11 int? y = 0;
12 int? z = 1;
14 f (false, x == 0);
15 f (true, x != 0);
16 f (false, x == y);
17 f (true, x != y);
18 f (true, x == w);
19 f (false, x != w);
20 f (true, x == null);
21 f (false, x != null);
23 f (true, 0 == y);
24 f (false, 0 != y);
25 f (false, z == y);
26 f (true, z != y);
27 f (false, null == y);
28 f (true, null != y);