Initial set of Ward sgen annotations (#5705)
[mono.git] / mcs / errors / cs0411-17.cs
1 // CS0411: The type arguments for method `C.Test<T>(System.Func<T>)' cannot be inferred from the usage. Try specifying the type arguments explicitly
2 // Line: 14
3
4 using System;
5
6 interface IB
7 {
8 }
9
10 class C
11 {
12         public static void Main ()
13         {
14                 Test (() => { if (true) return (C) null; return (IB) null; });
15         }
16         
17         static void Test<T> (Func<T> f)
18         {
19         }
20 }