The property set value isn't captured when used with a return. This results in
undefined variables and errors.
[JsType(JsMode.Clr, Filename = "res/Tester.js")]
public class PropertyHolder
{
public int Prop { get; set; }
}
public static int SubMethod()
{
var propertyHolder = new PropertyHolder();
return propertyHolder.Prop = 7;
}
public static void PropertyAssignmentValue()
{
var assignmentValue = SubMethod();
new jQuery(HtmlContext.document.body).append(JsContext.@typeof(assignmentValue));
new jQuery(HtmlContext.document.body).append(JsContext.@typeof(7));
}
This results in:
undefined
number
Which happens due to returning the generated set_Prop function
SubMethod: function ()
{
var propertyHolder = new SharpKitWebApp4.Tester.PropertyHolder.ctor();
return propertyHolder.set_Prop(7);
},
/* Generated by SharpKit 5 v5.3.1 */
Original issue reported on code.google.com by co...@gravill.com on 13 Jan 2014 at 4:41
Original issue reported on code.google.com by
co...@gravill.com
on 13 Jan 2014 at 4:41