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

39 lines
423 B
C#

// Compiler options: -t:library
using System;
interface IComp<a>
{ }
class opt<c>
{ }
abstract class Func<p1,r>
{
public r apply (p1 x)
{
throw new System.Exception ();
}
}
class NemerleMap<a,b>
where a : IComp<a>
{
public opt<b> Find (a k)
{
return null;
}
public void Fold<d> (a y)
{
}
class lambda<d,aa,bb> : Func<aa,aa>
where aa : IComp<aa>
{
public aa apply2 (aa x)
{
return x;
}
}
}