TypeScript/tests/cases/compiler/declarationEmitDefaultExportWithStaticAssignment.ts
Wesley Wigham f2735b5a06
Fake up a namespace enclosing declaration when generating expando namespace members (#31971)
* Fake up a namespace enclosing declaration when generating expando namespace members

* Fix #31676
2019-06-20 12:58:16 -07:00

32 lines
542 B
TypeScript

// @declaration: true
// @filename: foo.ts
export class Foo {}
// @filename: index1.ts
import {Foo} from './foo';
export default function Example() {}
Example.Foo = Foo
// @filename: index2.ts
import {Foo} from './foo';
export {Foo};
export default function Example() {}
Example.Foo = Foo
// @filename: index3.ts
export class Bar {}
export default function Example() {}
Example.Bar = Bar
// @filename: index4.ts
function A() { }
function B() { }
export function C() {
return null;
}
C.A = A;
C.B = B;