[interp] Fall back to old implementation when calling on proxy
[mono-project.git] / mcs / errors / cs0075.cs
blob367cfc7d579693d1bbbfde6238d3cdc87e27ce31
1 // CS0075: To cast a negative value, you must enclose the value in parentheses
2 // Line: 20
3 class X
5 public readonly int i;
7 public X (int i)
9 this.i = i;
12 public static implicit operator X (int value)
14 return new X (value);
17 public static void Main ()
19 int a = 4, b = 5;
20 X x = (X) -a;
21 System.Console.WriteLine (x.i);