blob: 54b6c29244a06a753fe4ed1ef4a62b16ee41bf23 (
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
|
class A { }
class B { }
interface ICharlie<T> { }
class Delta : ICharlie<A>, ICharlie<B>
{
static void Test<U> (ICharlie<U> icu, U u)
{
}
public void World<U> (U u, IFoo<U> foo)
{
}
public void Test (Foo foo)
{
World ("Canada", foo);
}
static void Main ()
{
Test (new Delta (), new A ());
Test (new Delta (), new B ());
}
}
public interface IFoo<T>
{
}
public class Foo : IFoo<int>, IFoo<string>
{
}
|