linux-packaging-mono/mcs/tests/gtest-variance-18.cs

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