projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
89d0ba3
)
New test.
author
Martin Baulig
<martin@novell.com>
Wed, 4 Oct 2006 20:49:32 +0000
(20:49 -0000)
committer
Martin Baulig
<martin@novell.com>
Wed, 4 Oct 2006 20:49:32 +0000
(20:49 -0000)
svn path=/trunk/mcs/; revision=66259
mcs/tests/gtest-anon-2.cs
[new file with mode: 0644]
patch
|
blob
diff --git a/mcs/tests/gtest-anon-2.cs
b/mcs/tests/gtest-anon-2.cs
new file mode 100644
(file)
index 0000000..
bf6bbb3
--- /dev/null
+++ b/
mcs/tests/gtest-anon-2.cs
@@ -0,0
+1,34
@@
+using System;
+
+public delegate void Simple ();
+
+public delegate Simple Foo ();
+
+class X
+{
+ public void Hello<U> (U u)
+ { }
+
+ public void Test<T> (T t)
+ {
+ T u = t;
+ Hello (u);
+ Foo foo = delegate {
+ T v = u;
+ Hello (u);
+ return delegate {
+ Hello (u);
+ Hello (v);
+ };
+ };
+ Simple simple = foo ();
+ simple ();
+ Hello (u);
+ }
+
+ static void Main ()
+ {
+ X x = new X ();
+ x.Test (3);
+ }
+}