projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #496 from nicolas-raoul/unit-test-for-issue2907
[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
}