2007-05-25 Jonathan Chambers <joncham@gmail.com>
[mcs.git] / tests / gtest-anon-2.cs
blobbf6bbb317d2533d84fe60b4aaab0fb8e60f2c561
1 using System;
3 public delegate void Simple ();
5 public delegate Simple Foo ();
7 class X
9 public void Hello<U> (U u)
10 { }
12 public void Test<T> (T t)
14 T u = t;
15 Hello (u);
16 Foo foo = delegate {
17 T v = u;
18 Hello (u);
19 return delegate {
20 Hello (u);
21 Hello (v);
24 Simple simple = foo ();
25 simple ();
26 Hello (u);
29 static void Main ()
31 X x = new X ();
32 x.Test (3);