Leading comments have trailing separator while trailing comments have leading space This removes the extra trailing space in the trailing comments
10 lines
319 B
JavaScript
10 lines
319 B
JavaScript
//// [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; };
|
|
var a = new _this(); // Error
|