linux-packaging-mono/mcs/tests/test-anon-157.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

30 lines
287 B
C#

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 ();
}
}