Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / test-641.cs
1 using System;
2
3 public class Identifier
4 {
5         public Identifier () { }
6
7         public static bool operator == (Identifier id1, Identifier id2)
8         {
9                 return true;
10         }
11         public static bool operator != (Identifier id1, Identifier id2)
12         {
13                 return true;
14         }
15
16         public static implicit operator Identifier (string identifier)
17         {
18                 return null;
19         }
20         
21         public static implicit operator String (Identifier id)
22         {
23                 return null;
24         }
25         
26         public static implicit operator decimal (Identifier id)
27         {
28                 return -1;
29         }       
30
31         public static int Main ()
32         {
33                 Identifier a = null;
34                 string b = "a";
35
36                 if (!(a == b))
37                         return 1;
38
39                 decimal d = 5;
40                 if (a == d)
41                         return 2;
42                 
43                 return 0;
44         }
45 }
46