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:
authorMartin Baulig <martin@novell.com>2005-09-27 21:46:57 +0400
committerMartin Baulig <martin@novell.com>2005-09-27 21:46:57 +0400
commit96ab84b21c08cb3cd8954e2e34d1cb8dec09c268 (patch)
treee2a7efdfacec07251a93bdc469fdfa2d9dcf0898 /mcs/tests/gtest-204.cs
parent1f30ac46d36e2c4aadd128c3850f3b25d3ad0d26 (diff)
2005-09-27 Martin Baulig <martin@ximian.com>
* gtest-204.cs: New test for #75773. svn path=/trunk/mcs/; revision=50880
Diffstat (limited to 'mcs/tests/gtest-204.cs')
-rw-r--r--mcs/tests/gtest-204.cs33
1 files changed, 33 insertions, 0 deletions
diff --git a/mcs/tests/gtest-204.cs b/mcs/tests/gtest-204.cs
new file mode 100644
index 00000000000..d3904fa2ece
--- /dev/null
+++ b/mcs/tests/gtest-204.cs
@@ -0,0 +1,33 @@
+public class Map <b>
+{
+ b x;
+
+ public a Fold1 <a> (a ini)
+ {
+ return ini;
+ }
+
+ public c Fold<c> (c ini)
+ {
+ Fold1 <b> (x);
+ return ini;
+ }
+}
+
+
+public class LocalContext
+{
+ Map <string> locals = new Map <string> ();
+
+ public a Fold <a> (a acc)
+ {
+ return locals.Fold (acc);
+ }
+}
+
+class M {
+ static void Main () {
+ LocalContext x = new LocalContext ();
+ x.Fold ("a" );
+ }
+}