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:
authorRaja R Harinath <harinath@hurrynot.org>2005-12-16 14:33:18 +0300
committerRaja R Harinath <harinath@hurrynot.org>2005-12-16 14:33:18 +0300
commit1bcd3ff1b326e4ab5448ef206bf361e4b628a938 (patch)
tree5db65e114d39221c7e6457ec0506dfee2efee529 /mcs/tests/test-479.cs
parent8307e28946b44b867f35395930ea37cbb4de197a (diff)
Fix #77006.
* mcs/class.cs (TypeContainer.Mark_HasEquals): New. (TypeContainer.Mark_HasGetHashCode): New. (ClassPart): Override them. (MethodCore.CheckBase): Use them instead of referring to Parent.Methods. * tests/test-479.cs: New test from #77006. * errors/cs0659-2.cs: New test based on #77006. svn path=/trunk/mcs/; revision=54529
Diffstat (limited to 'mcs/tests/test-479.cs')
-rw-r--r--mcs/tests/test-479.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/mcs/tests/test-479.cs b/mcs/tests/test-479.cs
new file mode 100644
index 00000000000..71d7b7609a1
--- /dev/null
+++ b/mcs/tests/test-479.cs
@@ -0,0 +1,12 @@
+namespace Test{
+ public partial class Test{
+ public override bool Equals(object obj){
+ return true;
+ }
+
+ public override int GetHashCode(){
+ return 1;
+ }
+ static void Main () {}
+ }
+}