[mcs] declaration expression after ref/out argument
[mono.git] / mcs / errors / cs0411-24.cs
1 // CS0411: The type arguments for method `C.Foo<T>(out T)' cannot be inferred from the usage. Try specifying the type arguments explicitly
2 // Line: 8
3
4 public class C
5 {
6         public static void Main ()
7         {
8                 Foo (out var y);
9         }
10
11         static void Foo<T> (out T t)
12         {
13                 t = default (T);
14         }
15 }