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>2008-12-16 16:57:50 +0300
committerMarek Safar <marek.safar@gmail.com>2008-12-16 16:57:50 +0300
commited77b47938cfacf8af7850a07c8a71879b472c6c (patch)
treef8801ea11dd34ad3fe3adecbcd06644c6ced5a4f /mcs/tests/test-anon-87.cs
parent044b9533f58b6d40aa14408e30f90bd7634c596e (diff)
New tests.
svn path=/trunk/mcs/; revision=121595
Diffstat (limited to 'mcs/tests/test-anon-87.cs')
-rw-r--r--mcs/tests/test-anon-87.cs41
1 files changed, 41 insertions, 0 deletions
diff --git a/mcs/tests/test-anon-87.cs b/mcs/tests/test-anon-87.cs
new file mode 100644
index 00000000000..517d78de75e
--- /dev/null
+++ b/mcs/tests/test-anon-87.cs
@@ -0,0 +1,41 @@
+using System;
+
+namespace Bug
+{
+ public delegate void D ();
+
+ class AA : BB
+ {
+ public AA (BB bb)
+ : base (bb.Value)
+ {
+ D d = delegate () {
+ bb.Foo ();
+ TestMe ();
+ };
+ }
+
+ void TestMe ()
+ {
+ }
+
+ public static int Main ()
+ {
+ new AA (new BB ("a"));
+ return 0;
+ }
+ }
+
+ class BB
+ {
+ public string Value = "test";
+
+ public BB (string s)
+ {
+ }
+
+ public void Foo ()
+ {
+ }
+ }
+}