Closed GoogleCodeExporter closed 9 years ago
Nevermind... I added the attributes and it does compile. You guys are fucking
awesome.
/*Generated by SharpKit 5 v5.00.5000*/
if (typeof ($CreateAnonymousDelegate) == 'undefined') {
var $CreateAnonymousDelegate = function (target, func) {
if (target == null || func == null) return func;
var delegate = function () {
return func.apply(target, arguments);
};
delegate.func = func;
delegate.target = target;
delegate.isDelegate = true;
return delegate;
}
}
function Wrap(func) {
return function (arg) {
return func([arg]);
};
};
function MyMethod() {
var generic = new MyNamespace.Generic$2.ctor(MyNamespace.Implementer.ctor, System.String.ctor, new MyNamespace.Implementer.ctor());
$(document.body).append(generic.Make$1(System.Int32.ctor, 10)(100));
};
if (typeof (JsTypes) == "undefined") var JsTypes = [];
var MyNamespace$Generic$2 = {
fullname: "MyNamespace.Generic$2",
baseTypeName: "System.Object",
assemblyName: "2bf0c6617dba4750a6689ebc8bc5239b",
Kind: "Class",
definition: {
ctor: function (T, TResult, inner) {
this.T = T;
this.TResult = TResult;
this.inner = null;
System.Object.ctor.call(this);
this.inner = inner;
},
Make$1: function (TParam, n) {
return Wrap(this.inner.MakeFunc(n));
}
}
};
JsTypes.push(MyNamespace$Generic$2);
var MyNamespace$Implementer = {
fullname: "MyNamespace.Implementer",
baseTypeName: "System.Object",
assemblyName: "2bf0c6617dba4750a6689ebc8bc5239b",
interfaceNames: ["MyNamespace.Interface$1"],
Kind: "Class",
definition: {
ctor: function () {
System.Object.ctor.call(this);
},
MakeFunc: function (n) {
return $CreateAnonymousDelegate(this, function (parameters) {
var msg = "";
for (var $i2 = 0, $l2 = parameters.length, obj = parameters[$i2]; $i2 < $l2; $i2++, obj = parameters[$i2]) {
msg += n + " " + obj.toString();
}
return msg;
});
}
}
};
JsTypes.push(MyNamespace$Implementer);
var MyNamespace$Interface$1 = {
fullname: "MyNamespace.Interface$1",
baseTypeName: "System.Object",
assemblyName: "2bf0c6617dba4750a6689ebc8bc5239b",
Kind: "Interface"
};
JsTypes.push(MyNamespace$Interface$1);
Original comment by ing.marc...@gmail.com
on 1 Aug 2013 at 3:08
Great :-), closing this issue...
Original comment by DanelK...@gmail.com
on 1 Aug 2013 at 7:50
Original issue reported on code.google.com by
ing.marc...@gmail.com
on 1 Aug 2013 at 2:58