a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
39 lines
423 B
C#
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;
|
|
}
|
|
}
|
|
}
|