a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
30 lines
287 B
C#
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 ();
|
|
}
|
|
}
|