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.

Bug 165427 - Don't mark multiple assignment statements as an error
Summary: Don't mark multiple assignment statements as an error
Status: RESOLVED DUPLICATE of bug 158026
Alias: None
Product: groovy
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-18 16:56 UTC by shemnon
Modified: 2009-09-11 11:38 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description shemnon 2009-05-18 16:56:00 UTC
The syntax highligher marks the following code as an error:

def (a, b) = ['a', 'b']

This is new syntax in Groovy 1.6.  It is correct to flag it as an error in Groovy 1.5, but it is perfectly valid
(multiple assignment) in 1.6.
Comment 1 Petr Hejl 2009-05-19 14:42:21 UTC
Groovy parser is 1.5 based. Will be improved for 6.8.
Comment 2 Petr Hejl 2009-09-11 11:38:38 UTC

*** This issue has been marked as a duplicate of 158026 ***