### Environment information ```bash (see playground) ``` ### Rule name lint/correctness/noUnusedPrivateClassMembers ### Playground link https://biomejs.dev/playground/?analyzerFixMode=safeAndUnsafeFixes&code=ZQB4AHAAbwByAHQAIABjAGwAYQBzAHMAIABUAGUAcwB0ACAAewAKACAAIABwAHIAaQB2AGEAdABlACAAZgBpAGUAbABkADoAIABuAHUAbQBiAGUAcgA7AAoACgAgACAAYwBvAG4AcwB0AHIAdQBjAHQAbwByACgAKQAgAHsACgAgACAAIAAgAHQAaABpAHMALgBmAGkAZQBsAGQAIAA%2FAD8APQAgADEAOwAKACAAIAB9AAoAfQA%3D&ruleDomains.react=recommended&ruleDomains.test=recommended&ruleDomains.next=recommended&ruleDomains.project=recommended ### Expected result - `field` should not be considered unused here. - Fixing should not delete the field. ``` export class Test { private field: number; constructor() { this.field ??= 1; } } ``` (this is reduced, the original was more complicated, in particular there was a side effect on the right-hand of `??=` ...) ### Related Looks like the private variable check has more issues: #6974, #6933 ### Code of Conduct - [x] I agree to follow Biome's Code of Conduct
Environment information
Rule name
lint/correctness/noUnusedPrivateClassMembers
Playground link
https://biomejs.dev/playground/?analyzerFixMode=safeAndUnsafeFixes&code=ZQB4AHAAbwByAHQAIABjAGwAYQBzAHMAIABUAGUAcwB0ACAAewAKACAAIABwAHIAaQB2AGEAdABlACAAZgBpAGUAbABkADoAIABuAHUAbQBiAGUAcgA7AAoACgAgACAAYwBvAG4AcwB0AHIAdQBjAHQAbwByACgAKQAgAHsACgAgACAAIAAgAHQAaABpAHMALgBmAGkAZQBsAGQAIAA%2FAD8APQAgADEAOwAKACAAIAB9AAoAfQA%3D&ruleDomains.react=recommended&ruleDomains.test=recommended&ruleDomains.next=recommended&ruleDomains.project=recommended
Expected result
fieldshould not be considered unused here.(this is reduced, the original was more complicated, in particular there was a side effect on the right-hand of
??=...)Related
Looks like the private variable check has more issues: #6974, #6933
Code of Conduct