Enum member used in computed property name leads to compile error when using outputted .d.ts file #19704
Labels
Bug
A bug in TypeScript
Domain: Declaration Emit
The issue relates to the emission of d.ts files
Fixed
A PR has been merged for this issue
Milestone
TypeScript Version: 2.7.0-dev.20171102
Code
Compile with:
tsc test.ts --declaration --module commonjs
Expected behavior:
Expect the declaration file to export as it did in TS 2.5.3:
...or at least throw a compile error when compiling with
--declaration
.Actual behavior:
No compile error.
Another example
Here's another example that doesn't error with
--declaration
, even though I'm using a private name:The text was updated successfully, but these errors were encountered: