2014-07-13 01:04:16 +02:00
|
|
|
//// [collisionThisExpressionAndAmbientVarInGlobal.ts]
|
|
|
|
declare var _this: number; // no error as no code gen
|
|
|
|
var f = () => this;
|
|
|
|
_this = 10; // Error
|
|
|
|
|
|
|
|
//// [collisionThisExpressionAndAmbientVarInGlobal.js]
|
|
|
|
var _this = this;
|
|
|
|
var f = function () { return _this; };
|
2014-08-16 00:49:09 +02:00
|
|
|
_this = 10; // Error
|