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

Summary: Don't mark multiple assignment statements as an error
Product: groovy Reporter: shemnon <shemnon>
Component: EditorAssignee: Petr Hejl <phejl>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

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 ***