2001-11-21 Miguel de Icaza <miguel@ximian.com>
[mono.git] / mcs / tests / test-19.cs
1 using System;
2
3 class I {
4
5         public delegate string GetTextFn (string a);
6
7         static public GetTextFn GetText;
8
9         static string fn (string s)
10         {
11                 return "(" + s + ")";
12         }
13         
14         static I ()
15         {
16                 GetText = new GetTextFn (fn);
17         }
18 }
19
20 class X {
21         static void Main ()
22         {
23                 I.GetTextFn _ = I.GetText;
24
25                 Console.WriteLine (_("Hello"));
26         }
27 }