Skip to content

πŸ› Bug: Using missingProperties with private class properties brokenΒ #2183

@rubiesonthesky

Description

@rubiesonthesky

Bug Report Checklist

  • I have tried restarting my IDE and the issue persists.
  • I have pulled the latest main branch of the repository.
  • I have searched for related issues and found none that matched my issue.

Expected

	class WaveTracker {
		#previouslySeen = new Set<string>();

		#repeatedCount = 0;

		addAndCheck() {
			this.#repeatedCount = 0;
		}
	}

or

	class WaveTracker {
		#previouslySeen = new Set<string>();

		#repeatedCount: number = 0;

		addAndCheck() {
			this.#repeatedCount = 0;
		}
	}

Actual

class WaveTracker {
		#previouslySeen = new Set<string>();

		#repeatedCount = 0;
#repeatedCount: number;
#repeatedCount: number;
#repeatedCount: number;
#repeatedCount: number;
#repeatedCount: number;
#repeatedCount: number;
#repeatedCount: number;
#repeatedCount: number;
#repeatedCount: number;
#repeatedCount: number;
#repeatedCount: number;
#repeatedCount: number;
#repeatedCount: number;
#repeatedCount: number;
#repeatedCount: number;
#repeatedCount: number;
#repeatedCount: number;
#repeatedCount: number;
#repeatedCount: number;

		addAndCheck() {
			this.#repeatedCount = 0;
		}
	}

Additional Info

This can be reproduced by adding below code to missingPropertyAccess test.

class WaveTracker {
		#previouslySeen = new Set<string>();

		#repeatedCount = 0;

		addAndCheck() {
			this.#repeatedCount = 0;
		}
	}

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: accepting prsPlease, send a pull request to resolve this! πŸ™type: bugSomething isn't working :( πŸ›

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions