mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-24 20:19:25 -05:00
Error on invalid uses of namespace export (#37715)
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// @module: commonjs
|
||||
// @esModuleInterop: true
|
||||
// @noTypesAndSymbols: true
|
||||
|
||||
// @Filename: a.ts
|
||||
export = {}
|
||||
|
||||
// @Filename: b.ts
|
||||
export * as ns from './a';
|
||||
@@ -0,0 +1,9 @@
|
||||
// @module: commonjs
|
||||
// @importHelpers: true
|
||||
// @noTypesAndSymbols: true
|
||||
|
||||
// @Filename: a.ts
|
||||
export {}
|
||||
|
||||
// @Filename: b.ts
|
||||
export * as ns from './a'; // Error
|
||||
@@ -0,0 +1,4 @@
|
||||
// @module: esnext
|
||||
// @noTypesAndSymbols: true
|
||||
|
||||
export * as ns from './nonexistent'; // Error
|
||||
Reference in New Issue
Block a user