-
-
Notifications
You must be signed in to change notification settings - Fork 671
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
[js][es6] Unexpected "Must call super()
constructor before accessing this
"
#7869
Comments
super()
constructor before accessing this
"super()
constructor before accessing this
"
Err, |
Because that's how it's implemented at the moment. |
I'm a bit nervous about changing this in the typer. While we can easily detect the place where it's needed at the time of typing, I'm not sure if there could be transformations which require a We might even want to handle this in the generator itself to avoid an extra filter. |
Then again, given that this is a normal variable, I don't think anything could be inserted there anyway. |
That should do it. Assigning to nadako to clean up after me and add a test. |
Hey @nadako, just want to say absolutely loving the new es6 class output! It's been working well for me so far but I've run into an issue with a class like this:
The error is
It seems to happen when a member is accessed within a closure
For example, it also happens with
(Haxe build 4eefb97)
The text was updated successfully, but these errors were encountered: