You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Especially when refactoring existing JavaScript code, there are cases where an enum would be useful, but wouldn't be used outside of a single function. In those cases, I think it makes sense to allow the enum to be defined inside of the function's scope.
Activity
danquirk commentedon May 19, 2015
Presumably this could be considered along with other kinds of types we would allow in a future 'local types' feature. Edited the title appropriately.
[-]Don't warn on function scoped enums?[/-][+]Allow enums in local scopes[/+]