retag
[mcs.git] / errors / cs0661.cs
blob8f7bceb409afad59079ad9fc80e979a2edbb54bd
1 // cs0661.cs: `T' defines operator == or operator != but does not override Object.GetHashCode()
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 bool Equals(object o)
19 return true;