2015-01-13 10:44:36 +00:00
|
|
|
// CS0411: The type arguments for method `C.Foo<T>(out T)' cannot be inferred from the usage. Try specifying the type arguments explicitly
|
|
|
|
// Line: 8
|
2015-04-07 09:35:12 +01:00
|
|
|
// Compiler options: -langversion:experimental
|
2015-01-13 10:44:36 +00:00
|
|
|
|
|
|
|
public class C
|
|
|
|
{
|
|
|
|
public static void Main ()
|
|
|
|
{
|
|
|
|
Foo (out var y);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void Foo<T> (out T t)
|
|
|
|
{
|
|
|
|
t = default (T);
|
|
|
|
}
|
|
|
|
}
|