We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
private field declaration
v3.8.3, v4.5.4, v4.6.0-dev.20220116
Playground link with relevant code
export function func() { return class A { #field = '' } }
In watch mode, the name of the private field in the declaration file is not consistent after rebuild.
The initial build emits the following declaration:
export declare function func(): { new (): { "__#1@#field": string; }; };
Do some changes in the source file, for example:
export function func() { return class A { #field = 'a' } }
The output becomes:
export declare function func(): { new (): { "__#12@#field": string; }; };
Undo the change. The output becomes:
export declare function func(): { new (): { "__#16@#field": string; }; };
The number in the emitted private field name seems to increase after each rebuild.
The emitted private field name is consistent across rebuild and should be named #private.
#private
export declare function func(): { new (): { #private; }; };
The text was updated successfully, but these errors were encountered:
Duplicate of #36548. Used search terms: private emit in:title
private emit in:title
Technically your bug is about the identifier changing, the other not... but the identifier being in that format is the actual bug.
Sorry, something went wrong.
This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes.
No branches or pull requests
Bug Report
π Search Terms
private field declaration
π Version & Regression Information
v3.8.3, v4.5.4, v4.6.0-dev.20220116
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
In watch mode, the name of the private field in the declaration file is not consistent after rebuild.
The initial build emits the following declaration:
Do some changes in the source file, for example:
The output becomes:
Undo the change. The output becomes:
The number in the emitted private field name seems to increase after each rebuild.
π Expected behavior
The emitted private field name is consistent across rebuild and should be named
#private
.The text was updated successfully, but these errors were encountered: