Skip to content
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

Can't use {} to create an instance when the constructor of call has any arguments. #258

Closed
LiaoPeng opened this issue Sep 10, 2018 · 1 comment

Comments

@LiaoPeng
Copy link
Contributor

The code https://webassembly.studio/?f=l4cxr3q2wva

Get errors:

ERROR AS216: Constructor of class 'Car' must not require any arguments.

Expected:
Compiled successfully.

@dcodeIO
Copy link
Member

dcodeIO commented May 27, 2020

Closing this issue as part of 2020 vacuum because it is outdated, in that classes instantiated from object literals have meanwhile even been limited to classes without a constructor to avoid issues with constructor logic that turned up in attempts since then. I expect this to be attempted again in the future, but at this point it's not a high priority.

@dcodeIO dcodeIO closed this as completed May 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants