-
Notifications
You must be signed in to change notification settings - Fork 196
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
Invalid JSII library: failed to add property init to class #5441
Comments
Perhaps we can store initializers under a different name in class symbol environments - for example "constructor" or "$init" instead of "init"? |
It's a completely internal name, correct? |
Sort of. The compiler currently couples together the names of symbols with the code we generate for them in JavaScript code. (Definitely something we could decouple, but since we're no longer converting names between camelCase and snake_case etc. there haven't been many cases where we need this). Technically the solution I mentioned would prevent you from adding your own method named Maybe |
Do we even support |
Yes |
Those following two examples were compiled to tf-aws without a problem, on
and
probably because of this: #6242 (and that one #4870 that was merge before the error appear) |
I tried this:
Minimal (added by @eladb):
This happened:
I expected this:
No response
Is there a workaround?
No response
Anything else?
The relevant parts:
If I manually change the
init
name to something else it works.Wing Version
0.54.36
Node.js Version
v18.16.0
Platform(s)
MacOS
Community Notes
The text was updated successfully, but these errors were encountered: