diff --git a/tests/baselines/reference/unclosedExportClause01.errors.txt b/tests/baselines/reference/unclosedExportClause01.errors.txt index 22c38f4af8e..6590bc5cfed 100644 --- a/tests/baselines/reference/unclosedExportClause01.errors.txt +++ b/tests/baselines/reference/unclosedExportClause01.errors.txt @@ -1,14 +1,11 @@ -tests/cases/compiler/t2.ts(1,10): error TS2304: Cannot find name 'x'. -tests/cases/compiler/t2.ts(1,13): error TS2304: Cannot find name 'from'. +tests/cases/compiler/t2.ts(1,13): error TS2305: Module '"tests/cases/compiler/t1"' has no exported member 'from'. tests/cases/compiler/t2.ts(1,18): error TS1005: ',' expected. -tests/cases/compiler/t3.ts(1,10): error TS2304: Cannot find name 'from'. +tests/cases/compiler/t3.ts(1,10): error TS2305: Module '"tests/cases/compiler/t1"' has no exported member 'from'. tests/cases/compiler/t3.ts(1,15): error TS1005: ',' expected. -tests/cases/compiler/t4.ts(1,10): error TS2304: Cannot find name 'x'. tests/cases/compiler/t4.ts(1,17): error TS1005: ',' expected. -tests/cases/compiler/t4.ts(1,17): error TS2304: Cannot find name 'from'. +tests/cases/compiler/t4.ts(1,17): error TS2305: Module '"tests/cases/compiler/t1"' has no exported member 'from'. tests/cases/compiler/t4.ts(1,22): error TS1005: ',' expected. -tests/cases/compiler/t5.ts(1,10): error TS2304: Cannot find name 'x'. -tests/cases/compiler/t5.ts(1,18): error TS2304: Cannot find name 'from'. +tests/cases/compiler/t5.ts(1,18): error TS2305: Module '"tests/cases/compiler/t1"' has no exported member 'from'. tests/cases/compiler/t5.ts(1,23): error TS1005: ',' expected. @@ -16,38 +13,32 @@ tests/cases/compiler/t5.ts(1,23): error TS1005: ',' expected. export var x = "x"; -==== tests/cases/compiler/t2.ts (3 errors) ==== +==== tests/cases/compiler/t2.ts (2 errors) ==== export { x, from "./t1" - ~ -!!! error TS2304: Cannot find name 'x'. ~~~~ -!!! error TS2304: Cannot find name 'from'. +!!! error TS2305: Module '"tests/cases/compiler/t1"' has no exported member 'from'. ~~~~~~ !!! error TS1005: ',' expected. ==== tests/cases/compiler/t3.ts (2 errors) ==== export { from "./t1" ~~~~ -!!! error TS2304: Cannot find name 'from'. +!!! error TS2305: Module '"tests/cases/compiler/t1"' has no exported member 'from'. ~~~~~~ !!! error TS1005: ',' expected. -==== tests/cases/compiler/t4.ts (4 errors) ==== +==== tests/cases/compiler/t4.ts (3 errors) ==== export { x as a from "./t1" - ~ -!!! error TS2304: Cannot find name 'x'. ~~~~ !!! error TS1005: ',' expected. ~~~~ -!!! error TS2304: Cannot find name 'from'. +!!! error TS2305: Module '"tests/cases/compiler/t1"' has no exported member 'from'. ~~~~~~ !!! error TS1005: ',' expected. -==== tests/cases/compiler/t5.ts (3 errors) ==== +==== tests/cases/compiler/t5.ts (2 errors) ==== export { x as a, from "./t1" - ~ -!!! error TS2304: Cannot find name 'x'. ~~~~ -!!! error TS2304: Cannot find name 'from'. +!!! error TS2305: Module '"tests/cases/compiler/t1"' has no exported member 'from'. ~~~~~~ !!! error TS1005: ',' expected. \ No newline at end of file diff --git a/tests/baselines/reference/unclosedExportClause01.js b/tests/baselines/reference/unclosedExportClause01.js index 2316fca36ec..a683f8d987d 100644 --- a/tests/baselines/reference/unclosedExportClause01.js +++ b/tests/baselines/reference/unclosedExportClause01.js @@ -19,10 +19,12 @@ export { x as a, from "./t1" //// [t1.js] exports.x = "x"; //// [t2.js] -"./t1"; +var t1_1 = require("./t1"); +exports.x = t1_1.x; //// [t3.js] -"./t1"; //// [t4.js] -"./t1"; +var t1_1 = require("./t1"); +exports.a = t1_1.x; //// [t5.js] -"./t1"; +var t1_1 = require("./t1"); +exports.a = t1_1.x;