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.
<pre> const CONSTANT_ARRAY = [1, 2]; public function getSecondIndex() { return self::CONSTANT_ARRAY[1]; // Syntax error } </pre> The syntax error: <pre> unexpected:[ after: identifier 'CONSTANT_ARRAY' expected: instanceof, as, =>, } ... </pre>
*** This bug has been marked as a duplicate of bug 250579 ***