blob: 75a5d859176b968d86abf91ee80297bf401d3d66 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// 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
// Compiler options: -langversion:experimental
public class C
{
public static void Main ()
{
Foo (out var y);
}
static void Foo<T> (out T t)
{
t = default (T);
}
}
|