Enable test cases when import binding is used in export assignment directly or indirectly
This commit is contained in:
parent
e0323b4c2f
commit
c90f820b6c
4 changed files with 20 additions and 0 deletions
|
@ -14,3 +14,10 @@ exports.a = 10;
|
|||
var _a = require("es6ImportNamedImportInExportAssignment_0");
|
||||
var a = _a.a;
|
||||
module.exports = a;
|
||||
|
||||
|
||||
//// [es6ImportNamedImportInExportAssignment_0.d.ts]
|
||||
export declare var a: number;
|
||||
//// [es6ImportNamedImportInExportAssignment_1.d.ts]
|
||||
import { a } from "es6ImportNamedImportInExportAssignment_0";
|
||||
export = a;
|
||||
|
|
|
@ -27,3 +27,14 @@ var _a = require("es6ImportNamedImportInIndirectExportAssignment_0");
|
|||
var a = _a.a;
|
||||
var x = a;
|
||||
module.exports = x;
|
||||
|
||||
|
||||
//// [es6ImportNamedImportInIndirectExportAssignment_0.d.ts]
|
||||
export declare module a {
|
||||
class c {
|
||||
}
|
||||
}
|
||||
//// [es6ImportNamedImportInIndirectExportAssignment_1.d.ts]
|
||||
import { a } from "es6ImportNamedImportInIndirectExportAssignment_0";
|
||||
import x = a;
|
||||
export = x;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
// @target: es6
|
||||
// @module: commonjs
|
||||
// @declaration: true
|
||||
|
||||
// @filename: es6ImportNamedImportInExportAssignment_0.ts
|
||||
export var a = 10;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
// @target: es6
|
||||
// @module: commonjs
|
||||
// @declaration: true
|
||||
|
||||
// @filename: es6ImportNamedImportInIndirectExportAssignment_0.ts
|
||||
export module a {
|
||||
|
|
Loading…
Reference in a new issue