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-06-02 22:51:21 +0400
committerMarek Safar <marek.safar@gmail.com>2010-06-02 22:51:21 +0400
commitb1f36241f071e499b947cfd603161a62afd2a643 (patch)
tree28322a96f5c9190c643b71e9278a1d4e158cb3d0 /mcs/tests/test-781.cs
parentc21996da71758762b339a7c070dcade5f40f8b12 (diff)
New tests.
svn path=/trunk/mcs/; revision=158358
Diffstat (limited to 'mcs/tests/test-781.cs')
-rw-r--r--mcs/tests/test-781.cs28
1 files changed, 28 insertions, 0 deletions
diff --git a/mcs/tests/test-781.cs b/mcs/tests/test-781.cs
new file mode 100644
index 00000000000..b461dc28da9
--- /dev/null
+++ b/mcs/tests/test-781.cs
@@ -0,0 +1,28 @@
+using System;
+
+delegate void D ();
+
+class E
+{
+ public event D temp;
+}
+
+class A
+{
+ E Prop {
+ get {
+ return new E ();
+ }
+ }
+
+ void Test ()
+ {
+ Prop.temp += delegate () { };
+ }
+
+ public static void Main ()
+ {
+ var a = new A ();
+ a.Test ();
+ }
+}