2014-07-13 01:04:16 +02:00
|
|
|
//// [thisExpressionInCallExpressionWithTypeArguments.ts]
|
|
|
|
class C {
|
|
|
|
public foo() { [1,2,3].map<any,any>((x) => { return this; })}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//// [thisExpressionInCallExpressionWithTypeArguments.js]
|
|
|
|
var C = (function () {
|
|
|
|
function C() {
|
|
|
|
}
|
|
|
|
C.prototype.foo = function () {
|
|
|
|
var _this = this;
|
2015-02-07 05:03:24 +01:00
|
|
|
[1, 2, 3].map(function (x) { return _this; });
|
2014-07-13 01:04:16 +02:00
|
|
|
};
|
|
|
|
return C;
|
|
|
|
})();
|