Merge pull request #4935 from lambdageek/dev-handles-may
[mono.git] / mcs / tests / test-anon-157.cs
1 using System;
2
3 delegate void Foo ();
4
5 interface IFoo<T>
6 {
7         void Test ();
8 }
9
10 class X<T> : IFoo<T>
11 {
12         void IFoo<T>.Test ()
13         {
14                 Foo foo = delegate {
15                         Console.WriteLine (1);
16                 };
17                 
18                 foo ();
19         }
20 }
21
22 class M
23 {
24         public static void Main ()
25         {
26                 IFoo<int> x = new X<int> ();
27                 x.Test ();
28         }
29 }