-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Cannot implement decorator as a private method #9429
Comments
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
SWC does not appear to support defining a decorator with a private method
Input code
Config
Playground link (or link to the minimal reproduction)
https://play.swc.rs/?version=1.7.11&code=H4sIAAAAAAAAA3WSz0rEMBDG7%2FsU43pJoeQBun9QEC8iiHgTkWw77QazSUimrkX67k7abl2FvaTpzJfffDNJaVSMcO8cfC8AIinSJVwb1zRYPSLtXbW%2BDU0E%2FCK0VYTWflh3tK9vOTwjbQUfAnj3wZGjzmMBaXV1Iso5ms8qj4G6B%2BwKLhW0bcZMhbEM2pMLBbywvnqalHdzYi1or2ORuDlIKRWbKiBZy2CzBT5w0BHXydM2QbOhH4DS2UhwGDqBzVkl%2BalMi1erfwbGMCvr1paknQUxVTsRASh0836s4AxKnplY7rB2AZfZak4HpDbYyYFU3ptuaCWHAXoS9lBrq4y5SFY1YfgF98O3T7%2F9gpcbkSb%2B5%2BIyDvt2Z%2FhCm4BIIitA2e5sMDN8r0dyv2DYOLKan8QGLB7TyAVnOSAnzuoH9oK%2FCzYCAAA%3D&config=H4sIAAAAAAAAA1VPuw6DMAzc%2BQrkuUOVoUP%2FoR8RBYOCyEO2kYoQ%2F94EkrTd7LvznW%2Fv%2Bh5mNvDs9zSmJWpipLYnhDcv%2Bp0QkC0iG7JR4FZZ4UwJrdigAU0gLYG4MCdxXDyIpgkl2yGru1LFCpYQGBM86oWLFzjr7bj9PmOCi4TM%2F8Is1X5a2v2V2JVUcGFYT7KUzEWuDx7wFdWwZgyWX%2FXy7HF8AF26uLkwAQAA
SWC Info output
No response
Expected behavior
No error when running the emitted code; decorator executes as expected.
tsc
output for comparison:Actual behavior
Emitted code references the private method outside the class
Version
1.7.11
Additional context
No response
The text was updated successfully, but these errors were encountered: