Merge pull request #495 from nicolas-raoul/fix-for-issue2907-with-no-formatting-changes
[mono.git] / mcs / tests / test-anon-103.cs
1 using System;
2
3 delegate void Foo<S> (S s);
4
5 class X
6 {
7         public void Hello<U> (U u)
8         { }
9
10         public void Test<T> (T t)
11         {
12                 Hello (t);
13                 Foo<T> foo = delegate (T u) {
14                         Hello (u);
15                 };
16                 foo (t);
17         }
18
19         public static void Main ()
20         {
21                 X x = new X ();
22                 x.Test (3);
23         }
24 }