This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Created attachment 160101 [details] Decorators and errors Currently the editor reports decorators as errors (which is fine) but other errors in the document are then not reported (see screenshot). Event if decorators are not part of the ES6 standard, they will be in ES2016. Moreover, some frameworks already rely on this feature (like aurelia: http://aurelia.io/docs.html#/aurelia/dependency-injection/1.0.0-beta.1.2.2/doc/article/dependency-injection-basics). So do tools like babel. VSCode reports this as an error with this message: > Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning. Expected result: reported as an error with a message stating this is not in ES6. Example code: import { inject } from 'aurelia-framework'; @inject() export class Decorators { test() { this.; // Should be reported as an error. } }
Treat it as enhancement. The best solution is to extend the parser. But now I would like to stabilize the current functionality and then add new functionality.
This is ES7 feature. https://github.com/wycats/javascript-decorators/blob/master/README.md
Fixed in trunk.
This works perfectly. Thanks. +1 for support of experimental ES7.