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

25 lines
378 B
C#

interface I<out T1, out T2, out T3>
{
}
class C
{
public static bool M<T> ()
{
I<T, string, bool> a = null;
I<T, object, bool> b = a;
return a == b;
}
public static int Main ()
{
I<object, string, dynamic[]> a = null;
I<object, object, object[]> b = a;
I<dynamic, string, long> a2 = null;
I<object, object, long> b2 = a2;
M<uint> ();
return 0;
}
}