Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-538.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 587d9e4891485e807b3a40177e408a4305ba5545 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
delegate IInterface testDelegate(concrete x);

interface IInterface {
}

class concrete : IInterface {
}

class Program {
   private concrete getConcrete(IInterface z) {
      return new concrete();
   }
   
   public static void Main(string[] args) {
      Program p = new Program();
      testDelegate x = new testDelegate(p.getConcrete);
   }
}