linux-packaging-mono/mcs/tests/test-anon-157.cs

30 lines
287 B
C#
Raw Normal View History

using System;
delegate void Foo ();
interface IFoo<T>
{
void Test ();
}
class X<T> : IFoo<T>
{
void IFoo<T>.Test ()
{
Foo foo = delegate {
Console.WriteLine (1);
};
foo ();
}
}
class M
{
public static void Main ()
{
IFoo<int> x = new X<int> ();
x.Test ();
}
}