Closed
Description
Key points from discussion from this morning:
- Assume all non-ambient members of non-
const
enums are computed (even those initialized with literals), both for inlining purposes and for .d.ts generation purposes - Continue to aggressively compute initializer expressions in both
const
and non-const
enums - Ambient non-const enums preserve existing behavior (computed iff there is no initializer)
- Continue to have --preserveConstEnums flag, which causes emit of the lookup object for
const
enums but does not change inlining
Tag @ahejlsberg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment