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-09-29 11:40:40 +0400
committerMarek Safar <marek.safar@gmail.com>2010-09-29 12:12:52 +0400
commitff3a641aca1eaf9aea4e54ad3130a26c79aad7c1 (patch)
treed0601735b1932cb126fe6226ce0a52890093318b /mcs/tests/dtest-031.cs
parent43143b0a559cd7b0f11c42c6c769db90a3510c1c (diff)
New test.
Diffstat (limited to 'mcs/tests/dtest-031.cs')
-rw-r--r--mcs/tests/dtest-031.cs26
1 files changed, 26 insertions, 0 deletions
diff --git a/mcs/tests/dtest-031.cs b/mcs/tests/dtest-031.cs
new file mode 100644
index 00000000000..afce420ff00
--- /dev/null
+++ b/mcs/tests/dtest-031.cs
@@ -0,0 +1,26 @@
+using System;
+
+public class A<T>
+{
+ public U CustomDelegate<U>(out U u)
+ {
+ u = default(U);
+ return default(U);
+ }
+}
+
+public class Test
+{
+ public static int Main()
+ {
+ Foo<int> ();
+ return 0;
+ }
+
+ static void Foo<Z> ()
+ {
+ dynamic a = new A<Z>();
+ Z z;
+ a.CustomDelegate(out z);
+ }
+} \ No newline at end of file