| Summary: | False positives from no-dupe-keys when using setter and getter | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Mark Macdonald <mamacdon> |
| Component: | JS Tools | Assignee: | Mark Macdonald <mamacdon> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 5.0 | ||
| Target Milestone: | 6.0 RC1 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
Selfishly fixed because I want to use a getter and setter http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=ee9b129 |
1. Create a js file with this code: var x = { set state(value) { this._state = value; }, get state() { return this._state; } }; 2. You see an error "duplicate key 'state'". This is incorrect. The properties have the same identifier name, but their .kind fields are different. The rule needs to check the kinds too.