Explorar o código

Add

svn path=/trunk/mcs/; revision=1703
Miguel de Icaza %!s(int64=24) %!d(string=hai) anos
pai
achega
094c8f790b
Modificáronse 1 ficheiros con 18 adicións e 0 borrados
  1. 18 0
      mcs/errors/bug12.cs

+ 18 - 0
mcs/errors/bug12.cs

@@ -0,0 +1,18 @@
+using System.Collections;
+
+	class PtrHashtable : Hashtable {
+		class PtrComparer : IComparer {
+			public int Compare (object x, object y)
+			{
+				if (x == y)
+					return 0;
+				else
+					return 1;
+			}
+		}
+		
+		public PtrHashtable ()
+		{
+			comparer = new PtrComparer ();
+		}
+	}