Merge pull request #496 from nicolas-raoul/unit-test-for-issue2907
[mono.git] / mcs / tests / gtest-250.cs
1 using System;
2 using SCG = System.Collections.Generic;
3
4 public delegate S Fun<R,S> (R r);
5
6 public interface IIndexedSorted<T>
7 {
8         IIndexedSorted<V> Map<V> (Fun<T,V> mapper);
9 }
10
11 public class GuardedIndexedSorted<T> : IIndexedSorted<T>
12 {
13         IIndexedSorted<T> indexedsorted;
14
15         public IIndexedSorted<V> Map<V> (Fun<T,V> m)
16         {
17                 return indexedsorted.Map (m);
18         }
19 }
20
21 class X
22 {
23         public static void Main ()
24         { }
25 }