You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Missing parameter properties when using class with private fields #48771
exposedField not set as a property on ClassMissingField, even though it should be via the parameter property. This is the minimal example I could find - it seems to need a private field with a destructuring assignment.
🙂 Expected behavior
exposedField should be set as a property on ClassMissingField using parameter properties.
Activity
RyanCavanaugh commentedon Apr 19, 2022
Jake Bailey (@jakebailey) this might be fixed by the other PR
jakebailey commentedon Apr 19, 2022
I just checked on main and this was unfortunately not fixed by either #48687 or #48765, no.
cc Josh Ghoulberg 👻 (@JoshuaKGoldberg) patrickszmucer
jakebailey commentedon Apr 19, 2022
This is pretty similar to those, though. Check out the emit of this: Playground Link
Double prolougue, missing
this.exposedField = exposedField.This'd be a bug in
classFields.ts, the thing that does the class fields transforms to lower ES versions.jlusty commentedon Apr 20, 2022
I had a look into this and think I've found the issue - hopefully this is a fix: #48775