Replace SIZEOF_REGISTER with sizeof(mgreg_t) for consistency with sizeof(gpointer)
[mono.git] / mcs / errors / gcs0019-19.cs
1 // CS0019: Operator `^' cannot be applied to operands of type `S2' and `float'
2 // Line: 9
3
4 public class Test
5 {
6         public static void Main()
7         {
8                 S2 s2 = new S2 ();
9                 int r = s2 ^ 5.04f;
10         }
11 }
12
13 struct S2
14 {
15         public static int operator ^ (double? p1, S2 s2)
16         {
17                 return 1;
18         }
19         
20         public static implicit operator int? (S2 s1)
21         { 
22                 return int.MinValue;
23         }
24 }