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