20 lines
301 B
C#
Raw Normal View History

// CS8047: Declaration expression cannot be used in this context
// Line: 8
// Compiler options: -langversion:experimental
public class C
{
public static void Main ()
{
dynamic target = 3;
var x = new Test (target, out var y);
}
}
class Test
{
public Test (int x, out int y)
{
y = 0;
}
}