Leading comments have trailing separator while trailing comments have leading space This removes the extra trailing space in the trailing comments
31 lines
1.1 KiB
JavaScript
31 lines
1.1 KiB
JavaScript
//// [tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType1.ts] ////
|
|
|
|
//// [recursiveExportAssignmentAndFindAliasedType1_moduleDef.d.ts]
|
|
declare module "moduleC" {
|
|
import self = require("moduleC");
|
|
export = self;
|
|
}
|
|
|
|
//// [recursiveExportAssignmentAndFindAliasedType1_moduleB.ts]
|
|
class ClassB { }
|
|
export = ClassB;
|
|
|
|
//// [recursiveExportAssignmentAndFindAliasedType1_moduleA.ts]
|
|
/// <reference path="recursiveExportAssignmentAndFindAliasedType1_moduleDef.d.ts"/>
|
|
import moduleC = require("moduleC");
|
|
import ClassB = require("recursiveExportAssignmentAndFindAliasedType1_moduleB");
|
|
export var b: ClassB; // This should result in type ClassB
|
|
|
|
//// [recursiveExportAssignmentAndFindAliasedType1_moduleB.js]
|
|
define(["require", "exports"], function (require, exports) {
|
|
var ClassB = (function () {
|
|
function ClassB() {
|
|
}
|
|
return ClassB;
|
|
})();
|
|
return ClassB;
|
|
});
|
|
//// [recursiveExportAssignmentAndFindAliasedType1_moduleA.js]
|
|
define(["require", "exports"], function (require, exports) {
|
|
exports.b; // This should result in type ClassB
|
|
});
|