New test.
authorMarek Safar <marek.safar@gmail.com>
Thu, 1 Jul 2010 14:44:31 +0000 (14:44 -0000)
committerMarek Safar <marek.safar@gmail.com>
Thu, 1 Jul 2010 14:44:31 +0000 (14:44 -0000)
svn path=/trunk/mcs/; revision=159776

mcs/tests/gtest-521.cs [new file with mode: 0644]

diff --git a/mcs/tests/gtest-521.cs b/mcs/tests/gtest-521.cs
new file mode 100644 (file)
index 0000000..b7f6137
--- /dev/null
@@ -0,0 +1,30 @@
+using System;
+
+public delegate void D (object o);
+
+public class E<T>
+{
+       public class I
+       {
+               public event D E;
+       }
+
+       public static void Test ()
+       {
+               I i = new I ();
+               i.E += new D (EH);
+       }
+
+       static void EH (object sender)
+       {
+       }
+}
+
+public class M
+{
+       public static void Main ()
+       {
+               E<int>.Test ();
+       }
+}
+