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>2007-02-07 01:18:56 +0300
committerMarek Safar <marek.safar@gmail.com>2007-02-07 01:18:56 +0300
commit8c2607ae31d746aa3ae1e93655a380e78cd08e27 (patch)
tree2b68332161c6bcbc864797db765135564035980a /mcs/tests/test-558.cs
parent2f9eb0e26fb3cde6bdf656a37f6940cdb7f8c7df (diff)
Delegate Invoke method can be called directly.
svn path=/trunk/mcs/; revision=72383
Diffstat (limited to 'mcs/tests/test-558.cs')
-rw-r--r--mcs/tests/test-558.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/mcs/tests/test-558.cs b/mcs/tests/test-558.cs
new file mode 100644
index 00000000000..d4256b3ba76
--- /dev/null
+++ b/mcs/tests/test-558.cs
@@ -0,0 +1,13 @@
+public class TestClass
+{
+ delegate void OneDelegate (int i);
+
+ static void Main()
+ {
+ OneDelegate d = new OneDelegate (TestMethod);
+ d.Invoke (1);
+ }
+ public static void TestMethod (int i)
+ {
+ }
+}