2015-01-13 10:44:36 +00:00
|
|
|
// CS8047: Declaration expression cannot be used in this context
|
|
|
|
// 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 ()
|
|
|
|
{
|
|
|
|
dynamic target = 3;
|
|
|
|
var x = new Test (target, out var y);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
class Test
|
|
|
|
{
|
|
|
|
public Test (int x, out int y)
|
|
|
|
{
|
|
|
|
y = 0;
|
|
|
|
}
|
|
|
|
}
|