2010-06-03 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / test-641.cs
blobc128d5eca757400f39e6f2d698dada9755de1a57
1 using System;
3 public class Identifier
5 public Identifier () { }
7 public static bool operator == (Identifier id1, Identifier id2)
9 return true;
11 public static bool operator != (Identifier id1, Identifier id2)
13 return true;
16 public static implicit operator Identifier (string identifier)
18 return null;
21 public static implicit operator String (Identifier id)
23 return null;
26 public static implicit operator decimal (Identifier id)
28 return -1;
31 static int Main ()
33 Identifier a = null;
34 string b = "a";
36 if (!(a == b))
37 return 1;
39 decimal d = 5;
40 if (a == d)
41 return 2;
43 return 0;