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

37
mcs/tests/gtest-571.cs Normal file
View File

@@ -0,0 +1,37 @@
using System;
public abstract class A<T>
{
public abstract A<MM> For<MM> () where MM : T;
}
public class B<U, X, V> : A<V>
where V : X
where X : U
{
readonly A<U> _inner;
public B (A<U> inner)
{
_inner = inner;
}
public override A<PP> For<PP> () // base constraint is copied as PP : V
{
return _inner.For<PP> ();
}
}
public class Test : A<Test>
{
public static void Main ()
{
var t = new Test ();
new B<Test, Test, Test> (t).For<Test> ();
}
public override A<QQ> For<QQ> ()
{
return null;
}
}