TypeScript/tests/cases/compiler/declarationFunctionTypeNonlocalShouldNotBeAnError.ts
Wesley Wigham 154c6141f1
Allow functions to be printed structurally in declaration emit even when they have symbols (#21203)
* Allow functions to be printed structurally in declaration emit even when they have symbols

* Implement CR feedback and fix lint
2018-01-16 12:37:15 -08:00

9 lines
120 B
TypeScript

// @declaration: true
namespace foo {
function bar(): void {}
export const obj = {
bar
}
}