mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-19 01:31:17 -10:00
20 lines
341 B
C#
20 lines
341 B
C#
// cs0659.cs: `E' overrides Object.Equals(object) but does not override Object.GetHashCode()
|
|
// Line: 13
|
|
// Compiler options: -warnaserror -warn:3
|
|
|
|
public class Base
|
|
{
|
|
public override int GetHashCode ()
|
|
{
|
|
return 2;
|
|
}
|
|
}
|
|
|
|
public class E: Base
|
|
{
|
|
public override bool Equals (object o)
|
|
{
|
|
return true;
|
|
}
|
|
}
|