[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / errors / cs0252-2.cs
1 // CS0252: Possible unintended reference comparison. Consider casting the left side expression to type `A' to get value comparison
2 // Line: 15
3 // Compiler options: -warnaserror
4
5 using System;
6
7 class A
8 {
9         public override int GetHashCode ()
10         {
11                 return base.GetHashCode ();
12         }
13         
14         public override bool Equals (object obj)
15         {
16                 return obj != this;
17         }
18         
19         public static bool operator == (A left, A right)
20         {
21                 return true;
22         }
23         
24         public static bool operator != (A left, A right)
25         {
26                 return false;
27         }
28 }