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-08-19 23:13:12 +0400
committerMarek Safar <marek.safar@gmail.com>2010-08-20 11:26:01 +0400
commitbb14505712d6f3e1a89d98a18ad58b9983069e56 (patch)
treeb918aa5171e2a8ef79c456ab0de72fd9aaa22d87 /mcs/tests/dtest-019.cs
parentde7b2843eb70d20ad7e9f585282519c8470fca7e (diff)
Fixes delegate creation with dynamic parameters
Diffstat (limited to 'mcs/tests/dtest-019.cs')
-rw-r--r--mcs/tests/dtest-019.cs29
1 files changed, 29 insertions, 0 deletions
diff --git a/mcs/tests/dtest-019.cs b/mcs/tests/dtest-019.cs
new file mode 100644
index 00000000000..6ab5babb0e0
--- /dev/null
+++ b/mcs/tests/dtest-019.cs
@@ -0,0 +1,29 @@
+public class C
+{
+ delegate void D (dynamic d);
+ delegate void D2 (out dynamic d);
+
+ static void Method (dynamic d)
+ {
+ }
+
+ static void Method (dynamic d, dynamic d2)
+ {
+ }
+
+ static void Method2 (dynamic d, int i)
+ {
+ }
+
+ static void Method2 (out object d)
+ {
+ d = null;
+ }
+
+ public static void Main ()
+ {
+ D d = Method;
+ D2 d2 = Method2;
+ }
+}
+