-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Closed
Labels
Needs InvestigationThis issue needs a team member to investigate its status.This issue needs a team member to investigate its status.
Description
TypeScript Version: 3.6.1-rc
Search Terms: const enum export declaration TS2475
Code
// test.ts
const enum Test {}
export { Test };Expected behavior:
The above code compiles without errors.
Actual behavior:
test.ts:2:10 - error TS2475: 'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query.
Playground Link:
http://www.typescriptlang.org/play/#code/MYewdgzgLgBApmArgWxgFTtGBvAvgKDgA8AHEAJ1m3U1lwG4g
Related Issues:
N/A
Flarna, valmyzk, gsbelarus, Shin-Ogata, gmullerb and 10 more
Metadata
Metadata
Assignees
Labels
Needs InvestigationThis issue needs a team member to investigate its status.This issue needs a team member to investigate its status.