Merge pull request #1412 from esdrubal/stackframe
[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 // Compiler options: -langversion:experimental
4
5 public class C
6 {
7         public static void Main ()
8         {
9                 Foo (out var y);
10         }
11
12         static void Foo<T> (out T t)
13         {
14                 t = default (T);
15         }
16 }