blob: 503d8da9cbf3ac93fd3ff1f32a4b40887d90cb19 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
class A<T>
{
public class Context<U>
{
public delegate void D (T instance);
public delegate void D2<V> ();
}
public class Constructor
{
public class Nested
{
public static void Test<U> (Context<U>.D d)
{
var c = new Constructor ();
c.Before (d);
}
public static void Test<U, V> (Context<U>.D2<V> d)
{
var c = new Constructor ();
c.Before (d);
}
}
public void Before<U> (Context<U>.D d)
{
}
public void Before<U, V> (Context<U>.D2<V> d)
{
}
}
}
class C
{
public static int Main ()
{
A<int>.Context<bool>.D d = null;
A<int>.Constructor.Nested.Test (d);
A<int>.Context<bool>.D2<string> d2 = null;
A<int>.Constructor.Nested.Test (d2);
return 0;
}
}
|