Merge pull request #4816 from BrzVlad/fix-remoting-exception
[mono.git] / mcs / tests / test-387.cs
1 public struct ObjectID {
2         long l;
3
4         public ObjectID (long l)
5         {
6                 this.l = l;
7         }
8
9         public static implicit operator long (ObjectID p)
10         {
11                 return p.l;
12         }
13
14         public static implicit operator ObjectID (long l)
15         {
16                 return new ObjectID (l);
17         }
18
19         public static void Main ()
20         {
21                 ObjectID x = new ObjectID (0);
22                 decimal y = x;
23         }
24 }
25