Merge all static runtime libs into libmono-static.
[mono.git] / mcs / errors / cs0019-40.cs
1 // CS0019: Operator `==' cannot be applied to operands of type `Foo' and `null'
2 // Line: 14
3
4 struct Foo
5 {
6         public static bool operator == (int d1, Foo d2)
7         {
8                 throw new System.ApplicationException ();
9         }
10                 
11         public static bool operator != (int d1, Foo d2)
12         {
13                 throw new System.ApplicationException ();       
14         }
15 }
16
17 public class Test
18 {
19         static Foo ctx;
20
21         public static void Main ()
22         {
23                 if (ctx == null)
24                         return;
25         }
26 }