projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
combined
(merge:
c4a3b30
d1f183e
)
New test.
author
Martin Baulig
<martin@novell.com>
Wed, 4 Oct 2006 20:51:14 +0000
(20:51 -0000)
committer
Martin Baulig
<martin@novell.com>
Wed, 4 Oct 2006 20:51:14 +0000
(20:51 -0000)
svn path=/trunk/mcs/; revision=66266
1
2
mcs/tests/gtest-anon-25.cs
patch
|
|
|
blob
diff --cc
mcs/tests/gtest-anon-25.cs
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..5712fb9d8fb7b624aeee53a02c45b4717e1b62e3
new file mode 100644
(file)
--- /dev/null
--- /dev/null
+++ b/
mcs/tests/gtest-anon-25.cs
@@@ -1,0 -1,0
+1,25
@@@
++using System;
++using System.Collections.Generic;
++
++delegate int Foo ();
++
++class X
++{
++ static void Main ()
++ {
++ Test ("Hello World", 8);
++ }
++
++ public static void Test<R> (R r, int a)
++ {
++ for (int b = a; b > 0; b--) {
++ R s = r;
++ Foo foo = delegate {
++ Console.WriteLine (b);
++ Console.WriteLine (s);
++ return 3;
++ };
++ a -= foo ();
++ }
++ }
++}