google / google/closure-compiler
Lint warning when calling static methods on subclasses
Open
enhancement
- Dominant language
- JavaScript
- Stars
- 7.7k
- Forks
- 1.2k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 6
Description
We should consider having `Es6ToEs3Converter` add `@deprecated` to any static methods copied from base class to subclass, so that the following produces a lint warning:
``` js
class Base { static foo() {} }
class Sub extends Base {}
Sub.foo();
```
Contributor guide
Research direction
Start by tracing Es6ToEs3Converter and the handling of static methods copied from a base class to a subclass. Use the JavaScript example in the issue as the reproduction; the work is done when calling Sub.foo() produces the intended lint warning.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100