[ilasm] Don't break arguments compatiblity
[mono-project.git] / mcs / tests / test-xml-063.cs
blobf9964180120d0661b98c95100c953e95ff3b5266
1 // Compiler options: -doc:xml-063.xml
3 /// Test A
4 public class A
8 /// <seealso cref="explicit operator long (Test)"/>
9 /// <seealso cref="explicit operator A"/>
10 /// <seealso cref="implicit operator Test"/>
11 /// <seealso cref="implicit operator Test(bool)"/>
12 /// <seealso cref="operator !(Test)"/>
13 /// <seealso cref="operator =="/>
14 /// <seealso cref="operator !="/>
15 /// <seealso cref="Test()"/>
16 public class Test
18 /// Start
19 Test ()
23 /// Comment
24 public static explicit operator A (Test test)
26 return new A ();
29 /// Comment 2
30 public static explicit operator long (Test test)
32 return 2;
35 /// Comment 3
36 public static implicit operator Test (int test)
38 return new Test ();
41 /// Comment 4
42 public static implicit operator Test (bool test)
44 return new Test ();
47 /// Comment 5
48 public static bool operator !(Test test)
50 return false;
53 /// Comment 6
54 public static bool operator == (Test a, int b)
56 return true;
59 /// Comment 7
60 public static bool operator != (Test a, int b)
62 return false;
65 /// Comment 61
66 public static bool operator == (Test a, long b)
68 return true;
71 /// Comment 72
72 public static bool operator != (Test a, long b)
74 return false;
77 static void Main ()