[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / errors / cs0661.cs
1 // CS0661: `T' defines operator == or operator != but does not override Object.GetHashCode()
2 // Line: 5
3 // Compiler options: -warnaserror -warn:3
4
5 class T
6 {
7         public static bool operator == (object o, T t)
8         {
9             return false;
10         }
11
12         public static bool operator != (object o, T t)
13         {
14             return true;
15         }
16         
17         public override bool Equals(object o)
18         {
19             return true;
20         }
21 }