Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

25 lines
344 B
C#

public class List<X>
{
public class Comp<Y>
{
public List<Y>.Comp<X> flip (Y y, X x)
{
return new Flip<Y> (this);
}
}
public class Flip<Z> : List<Z>.Comp<X>
{
Comp<Z> c;
public Flip (Comp<Z> cc) { c = cc; }
}
}
class C
{
public static int Main ()
{
var a = new List<short>.Comp<bool> ().flip (true, 3);
return 0;
}
}