[interp] Don't check for exception in native wrappers (#14184)
[mono-project.git] / mcs / errors / cs0252-2.cs
blobb69253cc460a039fd442de23e3f01b1450609652
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
5 using System;
7 class A
9 public override int GetHashCode ()
11 return base.GetHashCode ();
14 public override bool Equals (object obj)
16 return obj != this;
19 public static bool operator == (A left, A right)
21 return true;
24 public static bool operator != (A left, A right)
26 return false;