Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs0659.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a27934d732836b143e17cae8aaab01a9698a885b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// 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;
    }
}