"disable_omit_fp" can now be included in MONO_DEBUG
[mono-project.git] / mcs / tests / test-anon-118.cs
blob7b6a1afe6af4f00b47d98b175b82f2ec03bcda0f
2 // Supported by C# 3.0
4 public class C
6 public delegate TR Func<TR, TA> (TA t);
8 public static TR Test<TR, TA> (Func<TR, TA> f)
10 return default (TR);
13 public static TR Test<TR, TA, TB> (Func<TR, TA> f, Func<TR, TB> f2)
15 return default (TR);
18 public static void Test2<T> ()
20 T r = Test (delegate (T i) { return i; });
23 public static void Main()
25 int r = Test (delegate (int i) { return i < 1 ? 'a' : i; });
26 string s = Test (delegate (int i) { return "a"; }, delegate (int i) { return "b"; });