Skip to content

Inline classes not supported #3522

New issue

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

Closed
mhevery opened this issue Jun 16, 2015 · 2 comments
Closed

Inline classes not supported #3522

mhevery opened this issue Jun 16, 2015 · 2 comments
Labels
Question An issue which isn't directly actionable in code

Comments

@mhevery
Copy link

mhevery commented Jun 16, 2015

function ident(x) { return x; }

var Foo = ident(class Foo {})

Throws:

error TS9003: 'class' expressions are not currently supported.

I believe that is a valid ES6 syntax, and it should work.

@mhegazy
Copy link
Contributor

mhegazy commented Jun 16, 2015

We are adding the support for class expressions currently. class expressions should be fully supported in 1.6.

@mhegazy mhegazy added the Question An issue which isn't directly actionable in code label Jun 16, 2015
@danquirk
Copy link
Member

#497 is the main source of discussion

@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Question An issue which isn't directly actionable in code
Projects
None yet
Development

No branches or pull requests

3 participants