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

28 lines
365 B
C#

using System;
public class A
{
}
public class B : A
{
}
public class C : A
{
delegate void D<in T> (T t);
delegate T D<out T, U> (U u);
public static int Main ()
{
D<string> d_a = null;
D<object> d_b = (D<object>) d_a;
D<A, string> d2_a = null;
D<B, string> d2_b = (D<B, string>) d2_a;
D<C, string> d2_c = (D<C, string>) d2_a;
return 0;
}
}