* ResolvedReference.cs (.ctor): Set 'OriginalItemSpec' and 'ResolvedFrom',
[mcs.git] / tests / gtest-407.cs
blob1e0e5a6dc72a5b5eef5bc8558c5be6d5b3da3c5d
1 using System;
3 struct MyColor
5 int v;
7 public MyColor (int v)
9 this.v = v;
12 public static bool operator == (MyColor left, MyColor right)
14 return left.v == right.v;
17 public static bool operator != (MyColor left, MyColor right)
19 return left.v != right.v;
23 public class NullableColorTests
25 public static int Main ()
27 MyColor? col = null;
28 bool b = col == new MyColor (3);
29 Console.WriteLine (b);
30 if (b)
31 return 1;
33 b = col != new MyColor (3);
34 if (!b)
35 return 2;
37 return 0;