TypeScript/tests/cases/compiler/declarationEmitConstantNoWidening.ts

5 lines
172 B
TypeScript
Raw Normal View History

// @declaration: true
export const FOO = 'FOO';
export class Bar {
readonly type = FOO; // Should be widening literal "FOO" - so either `typeof "FOO"` or = "FOO"
}