diff options
author | Marek Safar <marek.safar@gmail.com> | 2010-04-27 16:33:26 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2010-04-27 16:33:26 +0400 |
commit | fc56acfaa23d3c2f7bc0914405a0aa2a7be2a2d0 (patch) | |
tree | 9a59ae3836b2a9ec42d55bc906f6bde87c31f0e2 /mcs/tests/gtest-482.cs | |
parent | 9ea478b7f796f8b3afc461afbe844b232052915c (diff) |
New tests.
svn path=/trunk/mcs/; revision=156177
Diffstat (limited to 'mcs/tests/gtest-482.cs')
-rw-r--r-- | mcs/tests/gtest-482.cs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/mcs/tests/gtest-482.cs b/mcs/tests/gtest-482.cs new file mode 100644 index 00000000000..8a8dd67bee0 --- /dev/null +++ b/mcs/tests/gtest-482.cs @@ -0,0 +1,27 @@ +using System; + +namespace TestBug +{ + public class BugClass<T> + { + public event EventHandler Evt { add { } remove { } } + + public void Bug () + { + Evt += Handler; + } + + public static void Handler (object sender, EventArgs e) + { + } + } + + class MainClass + { + public static void Main () + { + BugClass<int> bc = new BugClass<int> (); + bc.Evt += BugClass<int>.Handler; + } + } +} |