We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ES 6 allows class expressions inside functions (source 1, source 2 (first comment)).
Suggestion: TypeScript should allow classes inside functions.
function test() { // Throws "Unexpected token; 'statement' expected." class ABC { } }
Original CodePlex issue: http://typescript.codeplex.com/workitem/136
The text was updated successfully, but these errors were encountered:
Thanks for the suggestion. There's a bug tracking ES6 class expressions work (#239) and has some of the design notes if you want to comment.
Sorry, something went wrong.
No branches or pull requests
ES 6 allows class expressions inside functions (source 1, source 2 (first comment)).
Suggestion: TypeScript should allow classes inside functions.
Original CodePlex issue: http://typescript.codeplex.com/workitem/136
The text was updated successfully, but these errors were encountered: