diff options
author | Marek Safar <marek.safar@gmail.com> | 2010-06-02 22:51:21 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2010-06-02 22:51:21 +0400 |
commit | b1f36241f071e499b947cfd603161a62afd2a643 (patch) | |
tree | 28322a96f5c9190c643b71e9278a1d4e158cb3d0 /mcs/tests/test-781.cs | |
parent | c21996da71758762b339a7c070dcade5f40f8b12 (diff) |
New tests.
svn path=/trunk/mcs/; revision=158358
Diffstat (limited to 'mcs/tests/test-781.cs')
-rw-r--r-- | mcs/tests/test-781.cs | 28 |
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 (); + } +} |