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-11-25 18:01:35 +0300
committerMarek Safar <marek.safar@gmail.com>2008-11-25 18:01:35 +0300
commit0a75e81d90459cccaa92da18c874e93c4b7ec05e (patch)
tree818eed39ee6a0a7bf318ec227a5d7336fa3ce660 /mcs/tests/gtest-427.cs
parentdef6935cac4f1e9c0a85e94645c5f4ded7048ea7 (diff)
New tests.
svn path=/trunk/mcs/; revision=119955
Diffstat (limited to 'mcs/tests/gtest-427.cs')
-rw-r--r--mcs/tests/gtest-427.cs32
1 files changed, 32 insertions, 0 deletions
diff --git a/mcs/tests/gtest-427.cs b/mcs/tests/gtest-427.cs
new file mode 100644
index 00000000000..e3830d79c47
--- /dev/null
+++ b/mcs/tests/gtest-427.cs
@@ -0,0 +1,32 @@
+
+delegate void EventHandler (object sender);
+delegate void EventHandler<T> (T sender);
+
+class T
+{
+ void Test ()
+ {
+ Attach (OnClick);
+ }
+
+ void Attach (EventHandler handler)
+ {
+ throw null;
+ }
+
+ void Attach (EventHandler<string> handler)
+ {
+ }
+
+ void OnClick (string sender)
+ {
+ }
+
+ public static void Main ()
+ {
+ new T ().Test ();
+ }
+}
+
+
+