Merge pull request #4816 from BrzVlad/fix-remoting-exception
[mono.git] / mcs / tests / gtest-225.cs
1 public class Set<Element>
2 {
3         protected readonly Node[] sub;
4         public Set () { }
5
6         public struct Locator
7         {
8                 public delegate void Replace (Node node);
9                 public Locator (Replace put) { }
10         }
11
12         public class Node : Set<Element>
13         { }
14
15         protected Locator locate (Element x)
16         {
17                 Set<Element> parent = this;
18                 return new Locator (new Locator.Replace (delegate (Node n) {
19                         parent.sub[0] = n;
20                 }));
21         }
22 }
23
24 static class SetTest
25 {
26         public static void Main ()
27         {
28         }
29 }