18 lines
163 B
C#
Raw Normal View History

interface IFoo<out T>
{
}
struct S : IFoo<string>
{
}
public class Test
{
public static int Main ()
{
S s = new S ();
IFoo<object> o = s;
return 0;
}
}