2009-11-12 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / cs0216-3.cs
blob333a9423508ea343f3b0eff44cf632b02c005948
1 // CS0216: The operator `MyType.operator >(MyType, MyType)' requires a matching operator `<' to also be defined
2 // Line: 23
4 public struct MyType
6 int value;
8 public MyType (int value)
10 this.value = value;
13 public static bool operator == (MyType a, MyType b)
15 return a.value == b.value;
18 public static bool operator != (MyType a, MyType b)
20 return a.value != b.value;
23 public static bool operator > (MyType a, MyType b)
25 return a.value > b.value;
28 public static bool operator >= (MyType a, MyType b)
30 return a.value >= b.value;
33 public override string ToString ()
35 return value.ToString ();