diff options
author | Marek Safar <marek.safar@gmail.com> | 2004-06-09 15:27:07 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2004-06-09 15:27:07 +0400 |
commit | f5ade4f15c622760be2f951489857ab66d80db76 (patch) | |
tree | ac668dc71152d0ac39970451bb555597c827f014 /mcs/errors/cs0659.cs | |
parent | 32f8bc7e0b414c57daa9c12fa4c3f54080ad73ad (diff) |
new error test
svn path=/trunk/mcs/; revision=29108
Diffstat (limited to 'mcs/errors/cs0659.cs')
-rw-r--r-- | mcs/errors/cs0659.cs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/mcs/errors/cs0659.cs b/mcs/errors/cs0659.cs new file mode 100644 index 00000000000..84d77cb45cb --- /dev/null +++ b/mcs/errors/cs0659.cs @@ -0,0 +1,19 @@ +// cs0659.cs: "'E' overrides Object.Equals(object o) but does not override Object.GetHashCode() +// Line: 13 +// Compiler options: -warnaserror -warn:4 + +public class Base +{ + public override int GetHashCode () + { + return 2; + } +} + +public class E: Base +{ + public override bool Equals (object o) + { + return true; + } +} |