* Form.cs: Make the fix for #80775 windows-only (fixes #81957).
[mono.git] / mcs / errors / cs0457-2.cs
1 // cs0457: Ambiguous user defined conversions `A.implicit operator byte(A)' and `A.implicit operator sbyte(A)' when converting from 'A' to 'int'\r
2 // Line: 20\r
3 \r
4 class A\r
5 {\r
6         public static implicit operator ushort (A mask)\r
7         {\r
8                 return 1;\r
9         }\r
10 \r
11         public static implicit operator short (A mask)\r
12         {\r
13                 return 2;\r
14         }\r
15 }\r
16 \r
17 class X\r
18 {\r
19     static A a = null;\r
20     static object o = -a;\r
21 }\r