Merge pull request #4928 from kumpera/ptr_to_struct_intrinsic
[mono.git] / mcs / tests / gtest-168-lib.cs
1 // Compiler options: -t:library
2 using System;
3
4 interface IComp<a>
5 { }
6
7 class opt<c>
8 { }
9
10 abstract class Func<p1,r>
11 {
12         public r apply (p1 x)
13         {
14                 throw new System.Exception ();
15         }
16 }
17
18 class NemerleMap<a,b>
19         where a : IComp<a>
20 {
21         public opt<b> Find (a k)
22         {
23                 return null;
24         }
25
26         public void Fold<d> (a y)
27         {
28         }
29
30         class lambda<d,aa,bb> : Func<aa,aa>
31                 where aa : IComp<aa>
32         {
33                 public aa apply2 (aa x)
34                 {
35                         return x;
36                 }
37         }
38 }