Author: marek Date: 2008-02-21 04:53:08 -0500 (Thu, 21 Feb 2008) New Revision: 96329
Added: trunk/mcs/errors/cs0216-3.cs Modified: trunk/mcs/errors/cs0216-2.cs trunk/mcs/errors/cs0216.cs Log: New test + update. Modified: trunk/mcs/errors/cs0216-2.cs =================================================================== --- trunk/mcs/errors/cs0216-2.cs 2008-02-21 09:52:40 UTC (rev 96328) +++ trunk/mcs/errors/cs0216-2.cs 2008-02-21 09:53:08 UTC (rev 96329) @@ -1,5 +1,6 @@ -// cs0216-2.cs: The operator `X.operator true(X)' requires a matching operator `false' to also be defined -// Line: 4 +// CS0216: The operator `X.operator true(X)' requires a matching operator `false' to also be defined +// Line: 5 + class X { public static bool operator true (X i) { Added: trunk/mcs/errors/cs0216-3.cs =================================================================== --- trunk/mcs/errors/cs0216-3.cs 2008-02-21 09:52:40 UTC (rev 96328) +++ trunk/mcs/errors/cs0216-3.cs 2008-02-21 09:53:08 UTC (rev 96329) @@ -0,0 +1,37 @@ +// CS0216: The operator `MyType.operator >(MyType, MyType)' requires a matching operator `<' to also be defined +// Line: 23 + +public struct MyType +{ + int value; + + public MyType (int value) + { + this.value = value; + } + + public static bool operator == (MyType a, MyType b) + { + return a.value == b.value; + } + + public static bool operator != (MyType a, MyType b) + { + return a.value != b.value; + } + + public static bool operator > (MyType a, MyType b) + { + return a.value > b.value; + } + + public static bool operator >= (MyType a, MyType b) + { + return a.value >= b.value; + } + + public override string ToString () + { + return value.ToString (); + } +} Property changes on: trunk/mcs/errors/cs0216-3.cs ___________________________________________________________________ Name: svn:eol-style + native Modified: trunk/mcs/errors/cs0216.cs =================================================================== --- trunk/mcs/errors/cs0216.cs 2008-02-21 09:52:40 UTC (rev 96328) +++ trunk/mcs/errors/cs0216.cs 2008-02-21 09:53:08 UTC (rev 96329) @@ -1,5 +1,6 @@ -// cs0216.cs: The operator `X.operator <(X, int)' requires a matching operator `>' to also be defined -// Line: +// CS0216: The operator `X.operator <(X, int)' requires a matching operator `>' to also be defined +// Line: 5 + class X { public static X operator < (X a, int b) { _______________________________________________ Mono-patches maillist - Mono-patches@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-patches