importing messaging-2008 branch to trunk.
[mono.git] / mcs / tests / gtest-anon-50.cs
1 class M
2 {
3         public static int Main ()
4         {
5                 new SomeGenericClass<int>().FailsToCompile ();
6                 return 0;
7         }
8 }
9
10 class SomeGenericClass<SomeType>
11 {
12         object someValue;
13         delegate void SomeHandlerType ();
14
15         void Invoke (SomeHandlerType h)
16         {
17         }
18
19         public void FailsToCompile ()
20         {
21                 Invoke (delegate {
22                         object someObject = 1;
23                         Invoke (delegate {
24                                 someValue = someObject;
25                         });
26                 });
27         }
28 }
29