projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
b6b13e7
)
New test.
author
Martin Baulig
<martin@novell.com>
Wed, 4 Oct 2006 20:51:03 +0000
(20:51 -0000)
committer
Martin Baulig
<martin@novell.com>
Wed, 4 Oct 2006 20:51:03 +0000
(20:51 -0000)
svn path=/trunk/mcs/; revision=66263
mcs/tests/gtest-anon-13.cs
[new file with mode: 0644]
patch
|
blob
diff --git a/mcs/tests/gtest-anon-13.cs
b/mcs/tests/gtest-anon-13.cs
new file mode 100644
(file)
index 0000000..
6bd016b
--- /dev/null
+++ b/
mcs/tests/gtest-anon-13.cs
@@ -0,0
+1,30
@@
+using System;
+
+public delegate void Foo ();
+
+public class Test<R>
+{
+ public void World<S,T> (S s, T t)
+ where S : X
+ where T : S
+ { }
+
+ public void Hello<U,V> (U u, V v)
+ where U : X
+ where V : U
+ {
+ Foo foo = delegate {
+ World (u, v);
+ };
+ }
+}
+
+public class X
+{
+ public static void Main ()
+ {
+ X x = new X ();
+ Test<int> test = new Test<int> ();
+ test.Hello (x, x);
+ }
+}