linux-packaging-mono/mcs/tests/gtest-variance-13.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

39 lines
362 B
C#

using System;
using System.Collections.Generic;
interface I<in T>
{
}
class A
{
static void Foo<T> (T a, IList<T> c)
{
}
public static void Test ()
{
Foo ("aaaa", new object[0]);
}
}
class B
{
static void Foo<T> (T a, I<T> c)
{
}
static void Test<U> (U u, I<U> x)
{
Foo (u, x);
}
}
class M
{
public static int Main ()
{
return 0;
}
}