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

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2004-06-09 15:27:07 +0400
committerMarek Safar <marek.safar@gmail.com>2004-06-09 15:27:07 +0400
commitf5ade4f15c622760be2f951489857ab66d80db76 (patch)
treeac668dc71152d0ac39970451bb555597c827f014 /mcs/errors/cs0659.cs
parent32f8bc7e0b414c57daa9c12fa4c3f54080ad73ad (diff)
new error test
svn path=/trunk/mcs/; revision=29108
Diffstat (limited to 'mcs/errors/cs0659.cs')
-rw-r--r--mcs/errors/cs0659.cs19
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;
+ }
+}