2009-07-20 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / cs0660.cs
blob25bea201c7d216c3e8436292d5254dea9a2a7969
1 // cs0660.cs: `T' defines operator == or operator != but does not override Object.Equals(object o)
2 // Line: 5
3 // Compiler options: -warnaserror -warn:3
5 class T
7 public static bool operator == (object o, T t)
9 return false;
12 public static bool operator != (object o, T t)
14 return true;
17 public override int GetHashCode ()
19 return base.GetHashCode ();