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>2010-09-29 11:37:44 +0400
committerMarek Safar <marek.safar@gmail.com>2010-09-29 12:12:51 +0400
commitbd0919610833015221cdf550bebf0a8afceee728 (patch)
treec54519376cbc6ff0a0e9c39cf56bba1f98c83b6a /mcs/tests/test-467.cs
parentc96cc5d5e9a2a4614f3fb2ea64c77c0b5440be16 (diff)
Inflate custom site container delegates correctly.
Diffstat (limited to 'mcs/tests/test-467.cs')
-rw-r--r--mcs/tests/test-467.cs28
1 files changed, 28 insertions, 0 deletions
diff --git a/mcs/tests/test-467.cs b/mcs/tests/test-467.cs
new file mode 100644
index 00000000000..baea1270e55
--- /dev/null
+++ b/mcs/tests/test-467.cs
@@ -0,0 +1,28 @@
+using System;
+
+class A
+{
+ public delegate int D ();
+}
+
+class B : A
+{
+ new delegate void D ();
+}
+
+class C
+{
+ static int Foo ()
+ {
+ return 1;
+ }
+
+ public static int Main ()
+ {
+ A.D d = new B.D (Foo);
+ if (d () != 1)
+ return 1;
+
+ return 0;
+ }
+} \ No newline at end of file