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:
authorMiguel de Icaza <miguel@gnome.org>2005-02-11 08:52:55 +0300
committerMiguel de Icaza <miguel@gnome.org>2005-02-11 08:52:55 +0300
commit22533e5aa839fd674c0599a4541cab3749c55b60 (patch)
tree25e821bd71aa43ea295955b86c4ce33e35540eb1 /mcs/tests/test-344.cs
parentb0921ae655479b2dd1f96d7425ac692d8210103f (diff)
Add new test
svn path=/trunk/mcs/; revision=40459
Diffstat (limited to 'mcs/tests/test-344.cs')
-rw-r--r--mcs/tests/test-344.cs25
1 files changed, 25 insertions, 0 deletions
diff --git a/mcs/tests/test-344.cs b/mcs/tests/test-344.cs
new file mode 100644
index 00000000000..82c015c0ce9
--- /dev/null
+++ b/mcs/tests/test-344.cs
@@ -0,0 +1,25 @@
+using System;
+
+delegate void Y ();
+
+class X {
+ public event Y y;
+ static void Main (string [] args)
+ {
+ X x = new X ();
+ x.Foo ();
+ }
+
+ int a;
+
+ void Foo ()
+ {
+ int x = 1;
+ y += delegate {
+ Console.WriteLine (x);
+ Console.WriteLine (this.GetType ());
+ };
+ y ();
+
+ }
+}