Error on invalid uses of namespace export (#37715)

This commit is contained in:
Andrew Branch
2020-04-09 08:42:16 -08:00
committed by GitHub
parent 57f9076612
commit 24a17acf2c
10 changed files with 115 additions and 10 deletions

View File

@@ -0,0 +1,9 @@
// @module: commonjs
// @esModuleInterop: true
// @noTypesAndSymbols: true
// @Filename: a.ts
export = {}
// @Filename: b.ts
export * as ns from './a';

View File

@@ -0,0 +1,9 @@
// @module: commonjs
// @importHelpers: true
// @noTypesAndSymbols: true
// @Filename: a.ts
export {}
// @Filename: b.ts
export * as ns from './a'; // Error

View File

@@ -0,0 +1,4 @@
// @module: esnext
// @noTypesAndSymbols: true
export * as ns from './nonexistent'; // Error