mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-16 15:45:27 -05:00
Merge pull request #3641 from Microsoft/exportSepcifierInDeclarations
Fix assert with declaration emit for export specifier for a global
This commit is contained in:
12
tests/cases/compiler/exportSpecifierForAGlobal.ts
Normal file
12
tests/cases/compiler/exportSpecifierForAGlobal.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
// @declaration: true
|
||||
// @module: commonjs
|
||||
|
||||
// @filename: a.d.ts
|
||||
declare class X { }
|
||||
|
||||
// @filename: b.ts
|
||||
export {X};
|
||||
export function f() {
|
||||
var x: X;
|
||||
return x;
|
||||
}
|
||||
Reference in New Issue
Block a user