projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43143b0
)
New test.
author
Marek Safar
<marek.safar@gmail.com>
Wed, 29 Sep 2010 07:40:40 +0000
(08:40 +0100)
committer
Marek Safar
<marek.safar@gmail.com>
Wed, 29 Sep 2010 08:12:52 +0000
(09:12 +0100)
mcs/tests/dtest-031.cs
[new file with mode: 0644]
patch
|
blob
diff --git a/mcs/tests/dtest-031.cs
b/mcs/tests/dtest-031.cs
new file mode 100644
(file)
index 0000000..
afce420
--- /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