2014-07-13 01:04:16 +02:00
|
|
|
//// [collisionThisExpressionAndAmbientClassInGlobal.ts]
|
|
|
|
declare class _this { // no error - as no code generation
|
|
|
|
}
|
|
|
|
var f = () => this;
|
|
|
|
var a = new _this(); // Error
|
|
|
|
|
|
|
|
//// [collisionThisExpressionAndAmbientClassInGlobal.js]
|
|
|
|
var _this = this;
|
|
|
|
var f = function () { return _this; };
|
2014-08-15 23:32:08 +02:00
|
|
|
var a = new _this(); // Error
|