Imported Upstream version 3.6.0

Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
This commit is contained in:
Jo Shields
2014-08-13 10:39:27 +01:00
commit a575963da9
50588 changed files with 8155799 additions and 0 deletions

48
mcs/tests/gtest-566.cs Normal file
View File

@@ -0,0 +1,48 @@
class A<T>
{
public class Context<U>
{
public delegate void D (T instance);
public delegate void D2<V> ();
}
public class Constructor
{
public class Nested
{
public static void Test<U> (Context<U>.D d)
{
var c = new Constructor ();
c.Before (d);
}
public static void Test<U, V> (Context<U>.D2<V> d)
{
var c = new Constructor ();
c.Before (d);
}
}
public void Before<U> (Context<U>.D d)
{
}
public void Before<U, V> (Context<U>.D2<V> d)
{
}
}
}
class C
{
public static int Main ()
{
A<int>.Context<bool>.D d = null;
A<int>.Constructor.Nested.Test (d);
A<int>.Context<bool>.D2<string> d2 = null;
A<int>.Constructor.Nested.Test (d2);
return 0;
}
}