Merge pull request #5636 from BrzVlad/fix-xmm-scan
[mono.git] / mcs / tests / test-xml-063.cs
1 // Compiler options: -doc:xml-063.xml
2
3 /// Test A
4 public class A
5 {
6 }
7
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
17 {
18         /// Start
19         Test ()
20         {
21         }
22
23         /// Comment
24         public static explicit operator A (Test test)
25         {
26                 return new A ();
27         }
28
29         /// Comment 2
30         public static explicit operator long (Test test)
31         {
32                 return 2;
33         }
34
35         /// Comment 3
36         public static implicit operator Test (int test)
37         {
38                 return new Test ();
39         }
40
41         /// Comment 4
42         public static implicit operator Test (bool test)
43         {
44                 return new Test ();
45         }
46
47         /// Comment 5
48         public static bool operator !(Test test)
49         {
50                 return false;
51         }
52
53         /// Comment 6
54         public static bool operator == (Test a, int b)
55         {
56                 return true;
57         }
58
59         /// Comment 7
60         public static bool operator != (Test a, int b)
61         {
62                 return false;
63         }
64
65         /// Comment 61
66         public static bool operator == (Test a, long b)
67         {
68                 return true;
69         }
70
71         /// Comment 72
72         public static bool operator != (Test a, long b)
73         {
74                 return false;
75         }
76
77         static void Main ()
78         {
79         }
80 }