Browse Source

2002-05-07 Ravi Pratap <[email protected]>

	* test-117.cs : Add.

svn path=/trunk/mcs/; revision=4381
Ravi Pratap M 24 years ago
parent
commit
0fa4e6869e
3 changed files with 33 additions and 1 deletions
  1. 4 0
      mcs/tests/ChangeLog
  2. 1 1
      mcs/tests/makefile
  3. 28 0
      mcs/tests/test-117.cs

+ 4 - 0
mcs/tests/ChangeLog

@@ -1,3 +1,7 @@
+2002-05-07  Ravi Pratap  <[email protected]>
+
+	* test-117.cs : Add.
+
 2002-05-05  Miguel de Icaza  <[email protected]>
 
 	* test-28.cs: Improved test: before we were failing on abstract

+ 1 - 1
mcs/tests/makefile

@@ -15,7 +15,7 @@ TEST_SOURCES = \
 	test-81  test-82  test-83  test-84  	     test-86  test-87  test-88  test-89  test-90 \
 	test-91  test-92  test-93  test-94  test-95  test-96  test-97  test-98  test-99  test-100\
 	test-101 test-102 test-103 test-104 test-105 test-106 test-107 test-108 test-109 test-110\
-	test-111 test-112 test-113 test-114 test-115 test-116
+	test-111 test-112 test-113 test-114 test-115 test-116 test-117
 
 UNSAFE_SOURCES = \
 	unsafe-1 unsafe-2

+ 28 - 0
mcs/tests/test-117.cs

@@ -0,0 +1,28 @@
+using System;
+using System.Collections;
+
+public interface IFoo {
+
+}
+
+public class Blah : IFoo {
+
+	Hashtable table;
+
+	public Blah ()
+	{
+		table = new Hashtable ();
+	}
+
+	public static int Main ()
+	{
+		Blah b = new Blah ();
+
+		b.table.Add ("Ravi", (IFoo) b);
+
+		return 0;
+	}
+		
+	
+
+}