Closed
Description
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