[runtime] Fix "make distcheck"
[mono-project.git] / mono / tests / verifier / valid_generic_delegate_1.cs
blobc1ae99e5b68f9aa83a399e086b5365670100c96f
1 using System;
3 public delegate T Dele<T,K> (K k);
5 public class Foo <KEY> {
7 public VAL Method<VAL> (KEY k) {
8 Dele<VAL,KEY> t = new Dele<VAL,KEY> (Test<VAL>);
10 return t (k);
13 public static VAL Test<VAL> (KEY k) {
14 VAL v = default(VAL);
15 return v;
19 public class Driver {
20 public static void Main () {
21 new Foo<int>().Method<string>(99);