In .NET, property setters return the property value. E.g.:
void RunTest()
{
MyClass a, b;
a.MyProperty = b.MyProperty = 5;
}
This bit of code translates correctly, because SharpKit wraps the first
assignment into an anonymous function that returns the value.
However, this approach fails in slightly more complicated cases:
void DoStuff(int i) { }
void RunTest()
{
MyClass a;
DoStuff(a.MyProperty = 5);
}
In the above, DoStuff will be called on 5 in .NET, but it will be called on
undefined after SharpKit translation.
Original issue reported on code.google.com by filp...@tin.it on 19 Sep 2014 at 8:36
Original issue reported on code.google.com by
filp...@tin.it
on 19 Sep 2014 at 8:36