Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gtest-204.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6044c7193ce62e74bfab75aa1ac30bf3f8578583 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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 {
  public static void Main () {
     LocalContext x = new LocalContext ();
     x.Fold ("a" );
  }
}