-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Labels
Description
Hi!
I came across your project and it looks very interesting. I played a bit with it and get an error when trying to use 'with' and quick binding operator.
When I write this EC# code
Point p = new Point(0, 0);
var point2 = new Point(2,2);
with (p)
{
.X = 0;
.Y = 1;
}
it generates valid C# code
Point p = new Point(0, 0);
var point2 = new Point(2, 2);
{
var tmp_10 = p;
tmp_10.X = 0;
tmp_10.Y = 1;
}
But when I try this EC# code
Point p = new Point(0, 0);
new Point(2,2)::point2;
with (p)
{
.X = 0;
.Y = 1;
}
it generates invalid C# code
Point p = new Point(0, 0);
var point2 = new Point(2, 2);
point2;
{
var tmp_10 = p;
tmp_10.X = 0;
tmp_10.Y = 1;
}
P.S. Why keeping braces from 'with' is C# code?
I tried to use only quick binding operator and it gives some error. Am I using it wrong?