Ref: http://jira.codehaus.org/browse/GROOVY-4821
Reproducible with: Groovy 1.8.0 + groovypp-0.4.231_1.8.0 as well as Groovy
1.8.1 + groovypp-0.4.295_1.8.0
Script:
--------------------
def (a,b) = [1,2]
--------------------
Error:
--------------------
Caught: BUG! exception in phase 'conversion' in source unit 'C:\A.groovy'
org.codehaus.groovy.ast.expr.ArgumentListExpression c
annot be cast to org.codehaus.groovy.ast.expr.VariableExpression
BUG! exception in phase 'conversion' in source unit 'C:\A.groovy'
org.codehaus.groovy.ast.expr.ArgumentListExpression cannot be
cast to org.codehaus.groovy.ast.expr.VariableExpression
Caused by: java.lang.ClassCastException:
org.codehaus.groovy.ast.expr.ArgumentListExpression cannot be cast to
org.codehaus.groovy.ast.expr.
VariableExpression
at org.mbte.groovypp.compiler.TraitASTTransform$GppParserPluginFactory$1.declarationExpression(TraitASTTransform.groovy:347)
--------------------
Original issue reported on code.google.com by roshanda...@gmail.com on 26 Jul 2011 at 3:19
Original issue reported on code.google.com by
roshanda...@gmail.com
on 26 Jul 2011 at 3:19