3c1f479b9d
Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
16 lines
325 B
C#
16 lines
325 B
C#
// 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);
|
|
}
|
|
} |