TypeScript/tests/cases/compiler/uniqueSymbolPropertyDeclarationEmit.ts
Andrew Branch b63ea4b6df
Fix declaration emit for property references of imported object literal types (#39055)
* Fix declaration emit for property references of imported object literal types

* Add declaration file to test
2020-06-12 17:48:19 -07:00

27 lines
410 B
TypeScript

// @noTypesAndSymbols: true
// @esModuleInterop: true
// @declaration: true
// @Filename: test.ts
import Op from './op';
import { Po } from './po';
export default function foo() {
return {
[Op.or]: [],
[Po.ro]: {}
};
}
// @Filename: op.ts
declare const Op: {
readonly or: unique symbol;
};
export default Op;
// @Filename: po.d.ts
export declare const Po: {
readonly ro: unique symbol;
};