ES6 validator doesn't understand static class methods #629
Labels
bug
Issue identified by VS Code Team member as probable bug
javascript
JavaScript support issues
upstream
Issue identified as 'upstream' component related (exists outside of VS Code)
Milestone
The following code is valid ES6 code:
(jsconfig.json must specify the "ES6" target to understand the class syntax)
VS code underlines "static" in red and says "Modifiers cannot appear here". This is an incorrect error: it is valid ES6 syntax.
Note VS Code does not mark it as an error if the class is not wrapped in an IIFE, but these are typically used for encapsulation.
The text was updated successfully, but these errors were encountered: