Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

35 lines
425 B
C#

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>
{
}